Shift click play just run

This commit is contained in:
tong 2021-08-17 17:47:04 +02:00
parent f017d68ed7
commit 7b6d3536e3

View file

@ -1034,6 +1034,13 @@ class ArmoryPlayButton(bpy.types.Operator):
bl_idname = 'arm.play'
bl_label = 'Play'
def invoke(self, context, event):
if event.shift:
state.is_play = True
make.build_success()
return{'FINISHED'}
return self.execute(context)
def execute(self, context):
if state.proc_build != None:
return {"CANCELLED"}