diff options
author | Paul Geraskin <paul_geraskin@mail.ru> | 2013-07-30 14:31:37 +0400 |
---|---|---|
committer | Paul Geraskin <paul_geraskin@mail.ru> | 2013-07-30 14:31:37 +0400 |
commit | 7a08a9d57491e671c870dd52e6808bdd4ab43c23 (patch) | |
tree | 3478ad8e85a538b18a78958f242d5f9f9b2b7f03 /uv_texture_atlas.py | |
parent | c5ccc2fa5ccd84c6349de61827c381343b6b945e (diff) |
[TextureAtlas] refactotring.
Diffstat (limited to 'uv_texture_atlas.py')
-rw-r--r-- | uv_texture_atlas.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uv_texture_atlas.py b/uv_texture_atlas.py index f82c378d..fb1cfbbd 100644 --- a/uv_texture_atlas.py +++ b/uv_texture_atlas.py @@ -616,7 +616,7 @@ class MergeObjects(Operator): item.name = object.name # Add material to a tempObject if there are no materialSlots on the object - if len(activeNowObject.data.materials) == 0: + if not activeNowObject.data.materials: matName = "zz_TextureAtlas_NO_Material" mat = bpy.data.materials.get(matName) |