diff --git a/io_scene_vrml2/export_vrml2.py b/io_scene_vrml2/export_vrml2.py index 03deeb2ab08609c132119187330cfbf63b8eb8be..7b77cc08d5960023ff6073f11333889de2884aba 100644 --- a/io_scene_vrml2/export_vrml2.py +++ b/io_scene_vrml2/export_vrml2.py @@ -43,8 +43,10 @@ def save_bmesh(fw, bm, images = [ filepath_ref, filepath_base, - filepath_full, ] + if path_mode != 'RELATIVE': + images.append(filepath_full) + fw('\t\t\turl [ %s ]\n' % " ".join(['"%s"' % f for f in images]) ) del images del filepath_ref, filepath_base, filepath_full, filepath diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index d40c4dde34650c7ed65695c7911dc61bc591cd10..0b3250441c855fd4c891d85864623789d79da534 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]]