PyTemplates operator_modal_timer: update to 2.8

use keyword argument

Fixes T59232
This commit is contained in:
Philipp Oeser 2018-12-12 09:34:34 +01:00
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
1 changed files with 1 additions and 1 deletions

View File

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