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

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