[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4644] trunk/py/scripts/addons/ uv_texture_atlas.py: [TextureAtlas] refactotring.
paul geraskin
paul_geraskin at mail.ru
Tue Jul 30 12:31:38 CEST 2013
Revision: 4644
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4644
Author: mifth
Date: 2013-07-30 10:31:37 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
[TextureAtlas] refactotring.
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:19:02 UTC (rev 4643)
+++ trunk/py/scripts/addons/uv_texture_atlas.py 2013-07-30 10:31:37 UTC (rev 4644)
@@ -616,7 +616,7 @@
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)
More information about the Bf-extensions-cvs
mailing list