diff options
author | Paul Geraskin <paul_geraskin@mail.ru> | 2013-07-30 14:19:02 +0400 |
---|---|---|
committer | Paul Geraskin <paul_geraskin@mail.ru> | 2013-07-30 14:19:02 +0400 |
commit | c5ccc2fa5ccd84c6349de61827c381343b6b945e (patch) | |
tree | 7f10fa6f843ec28a594d676ef7138e2dc4674898 /uv_texture_atlas.py | |
parent | 19d9601571c8295d320035190ac712159d5d7123 (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.py | 2 |
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) |