From 2135f8806c5154bb55374faf83cdecb48d4de090 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Aug 2011 05:23:00 +0000 Subject: use sets rather then tuples for if checks, python optimizes this case. --- space_view3d_copy_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'space_view3d_copy_attributes.py') 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'}) -- cgit v1.2.3