diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-25 19:21:32 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2011-01-25 19:21:32 +0300 |
commit | cb0358462c3953cdcdb92e10b4057d09050fe7d3 (patch) | |
tree | 74408734b405164f69ad660d5f595f201c726a73 | |
parent | 6b76a8c1f286dbd8ee042f493c408361cd158a64 (diff) |
Delete textures works correctly with texture folder.
-rw-r--r-- | io_coat3D/coat.py | 5 |
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 += '_' |