[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1500] trunk/py/scripts/addons/ io_coat3D/coat.py: Delete textures works correctly with texture folder.

Kalle-Samuli Riihikoski haikalle at gmail.com
Tue Jan 25 17:21:33 CET 2011


Revision: 1500
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1500
Author:   haikalle
Date:     2011-01-25 16:21:32 +0000 (Tue, 25 Jan 2011)
Log Message:
-----------
Delete textures works correctly with texture folder.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_coat3D/coat.py

Modified: trunk/py/scripts/addons/io_coat3D/coat.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/coat.py	2011-01-25 16:13:46 UTC (rev 1499)
+++ trunk/py/scripts/addons/io_coat3D/coat.py	2011-01-25 16:21:32 UTC (rev 1500)
@@ -456,7 +456,10 @@
         coa = bpy.context.scene.objects.active.coat3D
         scene = context.scene
         nimi = tex.objname(coa.objectdir)
-        osoite = os.path.dirname(coa.objectdir) + os.sep
+        if(coa.texturefolder):
+            osoite = os.path.dirname(coa.texturefolder) + os.sep
+        else:
+            osoite = os.path.dirname(coa.objectdir) + os.sep
         just_nimi = tex.justname(nimi)
         just_nimi += '_'
 



More information about the Bf-extensions-cvs mailing list