Fix T44842: Modal Timer (template) should return {'CANCELLED'} when cancelled!
This commit is contained in:
parent
6b5f3f5fef
commit
5e66827029
@ -10,7 +10,8 @@ class ModalTimerOperator(bpy.types.Operator):
|
|||||||
|
|
||||||
def modal(self, context, event):
|
def modal(self, context, event):
|
||||||
if event.type in {'RIGHTMOUSE', 'ESC'}:
|
if event.type in {'RIGHTMOUSE', 'ESC'}:
|
||||||
return self.cancel(context)
|
self.cancel(context)
|
||||||
|
return {'CANCELLED'}
|
||||||
|
|
||||||
if event.type == 'TIMER':
|
if event.type == 'TIMER':
|
||||||
# change theme color, silly!
|
# change theme color, silly!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user