summaryrefslogtreecommitdiffstats
path: root/tools/export/blender25/io_scene_dae/export_dae.py
diff options
context:
space:
mode:
authorromulox_x <romulox_x@yahoo.com>2015-07-09 17:34:12 -0700
committerromulox_x <romulox_x@yahoo.com>2015-07-09 17:34:12 -0700
commit1efeb8b95662c8583c90724846e6e47a79dd63b5 (patch)
tree6705dd82080bde2e3707398dc0da23373a1b8c5c /tools/export/blender25/io_scene_dae/export_dae.py
parentf697ec2fe022583dde5f3ae650f49cfd7f237c33 (diff)
downloadredot-engine-1efeb8b95662c8583c90724846e6e47a79dd63b5.tar.gz
when copy images enabled, 'images' path prefix was only being written to file if the destination file didn't exist. so it only worked the first time.
Diffstat (limited to 'tools/export/blender25/io_scene_dae/export_dae.py')
-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: