Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-25 15:55:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-25 15:55:26 +0400
commit0e2fbe6da195f07ed1f56fcb29b357a4e155253f (patch)
tree4868dc0bc6517856eb91681e4f7118938f35bfab /space_view3d_copy_attributes.py
parentdbb0d5e3c5568ee439340b63d0345d273cbcca1b (diff)
use sets when checking against multiple types
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 4f090716..ddfcd443 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -691,7 +691,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
def execute(self, context):
mode = getattr(self, 'mode', '')
- if not mode in ('MAT', 'VCOL', 'IMAGE', 'UV'):
+ if not mode in {'MAT', 'VCOL', 'IMAGE', 'UV'}:
self.report({'ERROR'}, "No mode specified or invalid mode.")
return self._end(context, {'CANCELLED'})
layername = getattr(self, 'layer', '')