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:
-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 += '_'