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>2011-07-20 12:10:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-20 12:10:59 +0400
commit70254c0c5e656ed5d0282d946b8e85b5ed85efb9 (patch)
tree90741fb5addb3bb92fae20cec878a9588b33dd5c /io_scene_fbx
parent246277c4670bedc3b064238708bbaac4396290ce (diff)
fix [#28028] 3ds export fails due to relative paths in windows
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/export_fbx.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py
index 7f0246e7..8e34d45d 100644
--- a/io_scene_fbx/export_fbx.py
+++ b/io_scene_fbx/export_fbx.py
@@ -1090,7 +1090,7 @@ def save_single(operator, scene, filepath="",
Property: "Height", "int", "",0''')
if tex:
fname_rel = bpy_extras.io_utils.path_reference(tex.filepath, base_src, base_dst, path_mode, "", copy_set)
- fname_strip = os.path.basename(fname_rel)
+ fname_strip = bpy.path.basename(fname_rel)
else:
fname_strip = fname_rel = ""
@@ -1149,7 +1149,7 @@ def save_single(operator, scene, filepath="",
if tex:
fname_rel = bpy_extras.io_utils.path_reference(tex.filepath, base_src, base_dst, path_mode, "", copy_set)
- fname_strip = os.path.basename(fname_rel)
+ fname_strip = bpy.path.basename(bpy.path.abspath(fname_rel))
else:
fname_strip = fname_rel = ""