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:19:02 +0400
committerPaul Geraskin <paul_geraskin@mail.ru>2013-07-30 14:19:02 +0400
commitc5ccc2fa5ccd84c6349de61827c381343b6b945e (patch)
tree7f10fa6f843ec28a594d676ef7138e2dc4674898 /uv_texture_atlas.py
parent19d9601571c8295d320035190ac712159d5d7123 (diff)
[TextureAtlas] change to materials check. No need to check slots. As slots could be empty.
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 a3744a6d..f82c378d 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.material_slots) == 0:
+ if len(activeNowObject.data.materials) == 0:
matName = "zz_TextureAtlas_NO_Material"
mat = bpy.data.materials.get(matName)