pull/254/head
Joe Marshall 2024-01-10 16:06:13 +00:00
rodzic 4fc826fbde
commit 2c48304853
1 zmienionych plików z 10 dodań i 3 usunięć

Wyświetl plik

@ -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'}