[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4643] trunk/py/scripts/addons/ uv_texture_atlas.py: [TextureAtlas] change to materials check.

paul geraskin paul_geraskin at mail.ru
Tue Jul 30 12:19:02 CEST 2013


Revision: 4643
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4643
Author:   mifth
Date:     2013-07-30 10:19:02 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
[TextureAtlas] change to materials check. No need to check slots. As slots could be empty.

Modified Paths:
--------------
    trunk/py/scripts/addons/uv_texture_atlas.py

Modified: trunk/py/scripts/addons/uv_texture_atlas.py
===================================================================
--- trunk/py/scripts/addons/uv_texture_atlas.py	2013-07-30 10:13:50 UTC (rev 4642)
+++ trunk/py/scripts/addons/uv_texture_atlas.py	2013-07-30 10:19:02 UTC (rev 4643)
@@ -616,7 +616,7 @@
             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)
 



More information about the Bf-extensions-cvs mailing list