Shift click play just run
This commit is contained in:
parent
f017d68ed7
commit
7b6d3536e3
|
@ -1034,6 +1034,13 @@ class ArmoryPlayButton(bpy.types.Operator):
|
||||||
bl_idname = 'arm.play'
|
bl_idname = 'arm.play'
|
||||||
bl_label = '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):
|
def execute(self, context):
|
||||||
if state.proc_build != None:
|
if state.proc_build != None:
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|
Loading…
Reference in a new issue