[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4572] contrib/py/scripts/addons/ uv_texture_atlas.py: [TextureAtlas] No need to remove all materials.

paul geraskin paul_geraskin at mail.ru
Thu Jun 13 09:34:57 CEST 2013


Revision: 4572
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4572
Author:   mifth
Date:     2013-06-13 07:34:57 +0000 (Thu, 13 Jun 2013)
Log Message:
-----------
[TextureAtlas] No need to remove all materials.

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

Modified: contrib/py/scripts/addons/uv_texture_atlas.py
===================================================================
--- contrib/py/scripts/addons/uv_texture_atlas.py	2013-06-13 06:49:48 UTC (rev 4571)
+++ contrib/py/scripts/addons/uv_texture_atlas.py	2013-06-13 07:34:57 UTC (rev 4572)
@@ -641,8 +641,8 @@
         bpy.ops.object.mode_set(mode='OBJECT', toggle=False)    
         
         ### remove all materials
-        for material in ob_merge.material_slots:
-             bpy.ops.object.material_slot_remove()  
+        #for material in ob_merge.material_slots:
+             #bpy.ops.object.material_slot_remove()  
              
         return{'FINISHED'}
 



More information about the Bf-extensions-cvs mailing list