Fix T44842: Modal Timer (template) should return {'CANCELLED'} when cancelled!

This commit is contained in:
Bastien Montagne 2015-05-25 17:42:10 +02:00
parent 6b5f3f5fef
commit 5e66827029
Notes: blender-bot 2023-02-14 09:05:02 +01:00
Referenced by issue #44906, Edited Hair messed up on opening old scene
Referenced by issue #44842, Modal Timer (template) should return {'CANCELLED'}
1 changed files with 2 additions and 1 deletions

View File

@ -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!