summaryrefslogtreecommitdiff
path: root/tools/export/blender25/io_scene_dae
diff options
context:
space:
mode:
Diffstat (limited to 'tools/export/blender25/io_scene_dae')
-rw-r--r--tools/export/blender25/io_scene_dae/export_dae.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py
index a92b97b8a9..d3337033c8 100644
--- a/tools/export/blender25/io_scene_dae/export_dae.py
+++ b/tools/export/blender25/io_scene_dae/export_dae.py
@@ -185,7 +185,11 @@ class DaeExporter:
else:
#export relative, always, no one wants absolute paths.
- imgpath = os.path.relpath(imgpath,os.path.dirname(self.path)).replace("\\","/") # export unix compatible always
+ try:
+ imgpath = os.path.relpath(imgpath,os.path.dirname(self.path)).replace("\\","/") # export unix compatible always
+ except:
+ pass #fails sometimes, not sure why
+
imgid = self.new_id("image")