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>2011-08-08 09:23:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-08 09:23:00 +0400
commit2135f8806c5154bb55374faf83cdecb48d4de090 (patch)
tree31cd393b5df32f5cef333f1a6d34398cc12bdfcc /space_view3d_copy_attributes.py
parentd061f22884156296541aa01d6f41e993dbe5412a (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.py2
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'})