Merge pull request #2304 from tong/just-run

Shift click play just run
This commit is contained in:
Lubos Lenco 2021-08-18 11:03:21 +02:00 committed by GitHub
commit 29785172f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"}