diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:21:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:21:37 +0400 |
commit | 22d2764d50f8571c0bbcdb4e7c944ba02763b43c (patch) | |
tree | 52c4f97b66f45d1153f97cc69f6eae127c293e3a /release/scripts/startup/bl_operators/uvcalc_lightmap.py | |
parent | 0160901c90f0db6ad615af31dd8c9201b660257f (diff) |
use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_lightmap.py')
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py index 9ae0cd0ddf9..2f1acf0a5dc 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -520,7 +520,7 @@ def unwrap(operator, context, **kwargs): if obj and obj.type == 'MESH': meshes = [obj.data] else: - meshes = {me.name: me for obj in context.selected_objects if obj.type == 'MESH' for me in (obj.data,) if not me.library if len(me.faces)}.values() + meshes = list({me for obj in context.selected_objects if obj.type == 'MESH' for me in (obj.data,) if me.faces and me.library is None}) if not meshes: operator.report({'ERROR'}, "No mesh object.") |