PyTemplates operator_modal_timer: update to 2.8
use keyword argument Fixes T59232
This commit is contained in:
parent
e3122d3414
commit
f2796da2e5
Notes:
blender-bot
2023-02-14 09:38:57 +01:00
Referenced by issue #59232, The standard script from the template does not work. The script is called - Operator modal Time
|
@ -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'}
|
||||
|
||||
|
|
Loading…
Reference in New Issue