From b930f0c1a6b731554caadd485d221314a35a3ff9 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Thu, 23 Jun 2011 01:50:06 +0000 Subject: [PATCH] fix [#27730] 2.58 Quake .map export broken --- io_scene_map/export_map.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/io_scene_map/export_map.py b/io_scene_map/export_map.py index acfd5fced..aeb8ed976 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 -- GitLab