diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:23:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:23:00 +0400 |
commit | 2135f8806c5154bb55374faf83cdecb48d4de090 (patch) | |
tree | 31cd393b5df32f5cef333f1a6d34398cc12bdfcc /space_view3d_copy_attributes.py | |
parent | d061f22884156296541aa01d6f41e993dbe5412a (diff) |
use sets rather then tuples for if checks, python optimizes this case.
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 a6ffc08b..307b9b70 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -743,7 +743,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator): to_face.use_twoside = from_face.use_twoside elif mode == 'TRANSP': to_face.blend_type = from_face.blend_type - elif mode in ('UV', 'IMAGE'): + elif mode in {'UV', 'IMAGE'}: attr = mode.lower() setattr(to_face, attr, getattr(from_face, attr)) return _end({'FINISHED'}) |