Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-12 18:17:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-12 18:17:13 +0400
commit2c236d3c8124959434f73f6c93ddc8fe6d13292f (patch)
tree783c2c46000cc3a0c93e6627fd88062a676d8444 /io_scene_vrml2
parent654fb090b2afbb7190dcfb4b6c0f340f8d32b27d (diff)
don't write absolute paths when writing relative vrml or x3d
Diffstat (limited to 'io_scene_vrml2')
-rw-r--r--io_scene_vrml2/export_vrml2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/io_scene_vrml2/export_vrml2.py b/io_scene_vrml2/export_vrml2.py
index 03deeb2a..7b77cc08 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