Skip to content
Snippets Groups Projects
Commit c5ccc2fa authored by Paul Geraskin's avatar Paul Geraskin
Browse files

[TextureAtlas] change to materials check. No need to check slots. As slots could be empty.

parent 19d96015
No related branches found
No related tags found
No related merge requests found
...@@ -616,7 +616,7 @@ class MergeObjects(Operator): ...@@ -616,7 +616,7 @@ class MergeObjects(Operator):
item.name = object.name item.name = object.name
# Add material to a tempObject if there are no materialSlots on the object # 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" matName = "zz_TextureAtlas_NO_Material"
mat = bpy.data.materials.get(matName) mat = bpy.data.materials.get(matName)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment