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_3ds | |
parent | 246277c4670bedc3b064238708bbaac4396290ce (diff) |
fix [#28028] 3ds export fails due to relative paths in windows
Diffstat (limited to 'io_scene_3ds')
-rw-r--r-- | io_scene_3ds/export_3ds.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py index 8264c18d..d25672ef 100644 --- a/io_scene_3ds/export_3ds.py +++ b/io_scene_3ds/export_3ds.py @@ -448,7 +448,7 @@ def make_material_texture_chunk(id, images): def add_image(img): import os - filename = os.path.basename(image.filepath) + filename = bpy.path.basename(image.filepath) mat_sub_file = _3ds_chunk(MATMAPFILE) mat_sub_file.add_variable("mapfile", _3ds_string(sane_name(filename))) mat_sub.add_subchunk(mat_sub_file) |