diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-20 12:10:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-20 12:10:59 +0400 |
commit | 70254c0c5e656ed5d0282d946b8e85b5ed85efb9 (patch) | |
tree | 90741fb5addb3bb92fae20cec878a9588b33dd5c /io_scene_x3d | |
parent | 246277c4670bedc3b064238708bbaac4396290ce (diff) |
fix [#28028] 3ds export fails due to relative paths in windows
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 4 |
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) |