Cleanup: use static sets where possible

This commit is contained in:
2014-09-18 17:45:31 +10:00
parent cf0ce0afc7
commit 90f75b8ce0
5 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ class ModalOperator(bpy.types.Operator):
self.execute(context)
elif event.type == 'LEFTMOUSE': # Confirm
return {'FINISHED'}
elif event.type in ('RIGHTMOUSE', 'ESC'): # Cancel
elif event.type in {'RIGHTMOUSE', 'ESC'}: # Cancel
context.object.location.x = self.init_loc_x
return {'CANCELLED'}