]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_texture.py
Remove unnecessary import statements from the Blender exporter
[libs/gl.git] / blender / io_mspgl / export_texture.py
index eb6fa223cf1f8d0f31d903daa5d9ac9229effd7f..3194edae8e53e1a407acac8073327ba818e52bdd 100644 (file)
@@ -1,6 +1,5 @@
 import os
-import base64
-import codecs
+import bpy
 
 def pixels_to_rgba(pixels):
        return (int(p*255) for p in pixels)
@@ -41,8 +40,7 @@ class TextureExporter:
 
                invert_mask = sum(1<<i for i, c in enumerate(channels) if c[0]=='~')
 
-               from .util import basename
-               fn = basename(image.filepath)
+               fn = bpy.path.basename(image.filepath)
                if not invert_mask and fn:
                        if not tex_node.use_mipmap:
                                tex_res.statements.append(Statement("mipmap_levels", 1))