PyTemplates operator_modal_timer: update to 2.8
use keyword argument Fixes T59232
This commit is contained in:
@@ -23,7 +23,7 @@ class ModalTimerOperator(bpy.types.Operator):
|
||||
|
||||
def execute(self, context):
|
||||
wm = context.window_manager
|
||||
self._timer = wm.event_timer_add(0.1, context.window)
|
||||
self._timer = wm.event_timer_add(0.1, window=context.window)
|
||||
wm.modal_handler_add(self)
|
||||
return {'RUNNING_MODAL'}
|
||||
|
||||
|
Reference in New Issue
Block a user