[Bf-blender-cvs] [f2796da2e5b] blender2.8: PyTemplates operator_modal_timer: update to 2.8

Philipp Oeser noreply at git.blender.org
Wed Dec 12 09:38:41 CET 2018


Commit: f2796da2e5b594368d6ef1e92b59cef75bcd819c
Author: Philipp Oeser
Date:   Wed Dec 12 09:34:34 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBf2796da2e5b594368d6ef1e92b59cef75bcd819c

PyTemplates operator_modal_timer: update to 2.8

use keyword argument

Fixes T59232

===================================================================

M	release/scripts/templates_py/operator_modal_timer.py

===================================================================

diff --git a/release/scripts/templates_py/operator_modal_timer.py b/release/scripts/templates_py/operator_modal_timer.py
index df4d10e656b..12f1ebbc17d 100644
--- a/release/scripts/templates_py/operator_modal_timer.py
+++ b/release/scripts/templates_py/operator_modal_timer.py
@@ -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'}



More information about the Bf-blender-cvs mailing list