]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_texture.py
Fix filename handling in the Blender exporter on Windows
[libs/gl.git] / blender / io_mspgl / export_texture.py
index 2a736b84032e0df7dc76dd008718c9a24233316c..f75d8f93ff3623100642f8d6418ab4c3d44a3e88 100644 (file)
@@ -16,7 +16,8 @@ class TextureExporter:
                if usage=='GRAY' and colorspace=='sRGB':
                                raise Exception("Grayscale textures with sRGB colorspace are not supported")
 
-               fn = os.path.basename(image.filepath)
+               from .util import basename
+               fn = basename(image.filepath)
                if not self.inline_data and fn:
                        srgb = "_srgb" if colorspace=='sRGB' else ""
                        tex_res.statements.append(Statement("external_image"+srgb, fn))