kopia lustrzana https://github.com/vilemduha/blendercam
fix tests
rodzic
4fc826fbde
commit
2c48304853
|
@ -72,6 +72,13 @@ class AsyncOperatorMixin:
|
|||
return False
|
||||
|
||||
def execute(self, context):
|
||||
if bpy.app.background:
|
||||
# running in background - don't run as modal,
|
||||
# otherwise tests all fail
|
||||
while self.tick(context)==True:
|
||||
pass
|
||||
return {'FINISHED'}
|
||||
else:
|
||||
self.timer=context.window_manager.event_timer_add(.001, window=context.window)
|
||||
context.window_manager.modal_handler_add(self)
|
||||
return {'RUNNING_MODAL'}
|
||||
|
|
Ładowanie…
Reference in New Issue