Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2011-01-25 19:21:32 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2011-01-25 19:21:32 +0300
commitcb0358462c3953cdcdb92e10b4057d09050fe7d3 (patch)
tree74408734b405164f69ad660d5f595f201c726a73 /io_coat3D
parent6b76a8c1f286dbd8ee042f493c408361cd158a64 (diff)
Delete textures works correctly with texture folder.
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/coat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py
index ce04ac79..51ed930f 100644
--- a/io_coat3D/coat.py
+++ b/io_coat3D/coat.py
@@ -456,7 +456,10 @@ class SCENE_OT_deltex(bpy.types.Operator):
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 += '_'