Skip to content
Snippets Groups Projects
Commit cb035846 authored by Kalle-Samuli Riihikoski's avatar Kalle-Samuli Riihikoski
Browse files

Delete textures works correctly with texture folder.

parent 6b76a8c1
No related branches found
No related tags found
No related merge requests found
......@@ -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 += '_'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment