Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-05-25 18:42:10 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-05-25 18:43:28 +0300
commit5e66827029b8964fa969dc033df8dbece89cdf2e (patch)
tree964a767f7cfa853577bb9bacb508d31e5b789e3c /release
parent6b5f3f5fefc2b1094b2686c8749584c5bb7872bd (diff)
Fix T44842: Modal Timer (template) should return {'CANCELLED'} when cancelled!
Diffstat (limited to 'release')
-rw-r--r--release/scripts/templates_py/operator_modal_timer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/templates_py/operator_modal_timer.py b/release/scripts/templates_py/operator_modal_timer.py
index 4d36860b9e3..df4d10e656b 100644
--- a/release/scripts/templates_py/operator_modal_timer.py
+++ b/release/scripts/templates_py/operator_modal_timer.py
@@ -10,7 +10,8 @@ class ModalTimerOperator(bpy.types.Operator):
def modal(self, context, event):
if event.type in {'RIGHTMOUSE', 'ESC'}:
- return self.cancel(context)
+ self.cancel(context)
+ return {'CANCELLED'}
if event.type == 'TIMER':
# change theme color, silly!