use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.
This commit is contained in:
@@ -45,7 +45,7 @@ class ModalDrawOperator(bpy.types.Operator):
|
||||
context.region.callback_remove(self._handle)
|
||||
return {'FINISHED'}
|
||||
|
||||
elif event.type in ('RIGHTMOUSE', 'ESC'):
|
||||
elif event.type in {'RIGHTMOUSE', 'ESC'}:
|
||||
context.region.callback_remove(self._handle)
|
||||
return {'CANCELLED'}
|
||||
|
||||
|
Reference in New Issue
Block a user