summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-07-27 22:21:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-07-27 22:21:53 -0300
commited85339bcb42c11789b8d595a4338654c5cf5e89 (patch)
tree93f34d343d53ec95582c9533081bf54dcc515099
parent07c99e11f5939699fefa10fab0b898ddc9246f85 (diff)
parent1efeb8b95662c8583c90724846e6e47a79dd63b5 (diff)
Merge pull request #2248 from romulox-x/colladaImagePath
fixed image path problem in bettercollada
-rw-r--r--tools/export/blender25/io_scene_dae/export_dae.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py
index 5245f32b82..b846f0e2d8 100644
--- a/tools/export/blender25/io_scene_dae/export_dae.py
+++ b/tools/export/blender25/io_scene_dae/export_dae.py
@@ -190,7 +190,7 @@ class DaeExporter:
if (not os.path.isfile(dstfile)):
shutil.copy(imgpath,dstfile)
- imgpath="images/"+os.path.basename(imgpath)
+ imgpath="images/"+os.path.basename(imgpath)
else:
### if file is not found save it as png file in the destination folder
img_tmp_path = image.filepath
@@ -204,7 +204,7 @@ class DaeExporter:
if (not os.path.isfile(dstfile)):
image.save()
- imgpath="images/"+os.path.basename(image.filepath)
+ imgpath="images/"+os.path.basename(image.filepath)
image.filepath = img_tmp_path
else: