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:
authorPaul Geraskin <paul_geraskin@mail.ru>2013-07-30 14:31:37 +0400
committerPaul Geraskin <paul_geraskin@mail.ru>2013-07-30 14:31:37 +0400
commit7a08a9d57491e671c870dd52e6808bdd4ab43c23 (patch)
tree3478ad8e85a538b18a78958f242d5f9f9b2b7f03 /uv_texture_atlas.py
parentc5ccc2fa5ccd84c6349de61827c381343b6b945e (diff)
[TextureAtlas] refactotring.
Diffstat (limited to 'uv_texture_atlas.py')
-rw-r--r--uv_texture_atlas.py2
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)