diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-25 18:42:10 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-25 18:43:28 +0300 |
commit | 5e66827029b8964fa969dc033df8dbece89cdf2e (patch) | |
tree | 964a767f7cfa853577bb9bacb508d31e5b789e3c /release | |
parent | 6b5f3f5fefc2b1094b2686c8749584c5bb7872bd (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.py | 3 |
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! |