diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 15:55:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 15:55:26 +0400 |
commit | 0e2fbe6da195f07ed1f56fcb29b357a4e155253f (patch) | |
tree | 4868dc0bc6517856eb91681e4f7118938f35bfab /space_view3d_copy_attributes.py | |
parent | dbb0d5e3c5568ee439340b63d0345d273cbcca1b (diff) |
use sets when checking against multiple types
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r-- | space_view3d_copy_attributes.py | 2 |
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', '') |