diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-23 05:50:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-23 05:50:06 +0400 |
commit | b930f0c1a6b731554caadd485d221314a35a3ff9 (patch) | |
tree | 3133a549eebeb7b52c88ed30b89d4a9ca3bbb18c | |
parent | 181205be601a7192ba4d936386c1a08e61e4d609 (diff) |
fix [#27730] 2.58 Quake .map export broken
-rw-r--r-- | io_scene_map/export_map.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_map/export_map.py b/io_scene_map/export_map.py index acfd5fce..aeb8ed97 100644 --- a/io_scene_map/export_map.py +++ b/io_scene_map/export_map.py @@ -19,6 +19,7 @@ # <pep8 compliant> import bpy +import os # TODO, make options PREF_SCALE = 100 @@ -75,7 +76,7 @@ def write_cube2brush(file, faces): image = uf.image if uf else None if image: - file.write(os.path.splitext(os.path.basename(image.filename))[0]) + file.write(os.path.splitext(os.path.basename(image.filepath))[0]) else: file.write(PREF_NULL_TEX) @@ -112,7 +113,7 @@ def write_face2brush(file, face): image = uf.image if uf else None if image: - image_text = os.path.splitext(os.path.basename(image.filename))[0] + image_text = os.path.splitext(os.path.basename(image.filepath))[0] # reuse face vertices _v = face.id_data.vertices # XXX25 |