X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_texture.py;h=f75d8f93ff3623100642f8d6418ab4c3d44a3e88;hb=be2d4eb0b735500a50d20ee2d9979c9f17d79e3a;hp=2a736b84032e0df7dc76dd008718c9a24233316c;hpb=d14b33347983d1d0cd608b29b5ee9b7a37d98c5b;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index 2a736b84..f75d8f93 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -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))