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:
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 823b8ff4..a9e87587 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1084,7 +1084,7 @@ def export(file,
filepath = image.filepath
filepath_full = bpy.path.abspath(filepath)
filepath_ref = bpy_extras.io_utils.path_reference(filepath_full, base_src, base_dst, path_mode, "textures", copy_set)
- filepath_base = os.path.basename(filepath_ref)
+ filepath_base = os.path.basename(filepath_full)
images = [
filepath_base,
@@ -1150,7 +1150,7 @@ def export(file,
if tex.type == 'IMAGE' and tex.image:
namemat = tex.name
pic = tex.image
- basename = os.path.basename(bpy.path.abspath(pic.filepath))
+ basename = bpy.path.basename(pic.filepath)
if namemat == 'back':
fw(ident_step + 'backUrl="%s"\n' % basename)