Fix T44842: Modal Timer (template) should return {'CANCELLED'} when cancelled!
This commit is contained in:
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'}
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue