diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 18:17:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 18:17:13 +0400 |
commit | 2c236d3c8124959434f73f6c93ddc8fe6d13292f (patch) | |
tree | 783c2c46000cc3a0c93e6627fd88062a676d8444 /io_scene_x3d | |
parent | 654fb090b2afbb7190dcfb4b6c0f340f8d32b27d (diff) |
don't write absolute paths when writing relative vrml or x3d
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index d40c4dde..0b325044 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -1302,8 +1302,9 @@ def export(file, images = [ filepath_ref, filepath_base, - filepath_full, ] + if path_mode != 'RELATIVE': + images.append(filepath_full) images = [f.replace('\\', '/') for f in images] images = [f for i, f in enumerate(images) if f not in images[:i]] |