]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/util.py
Always export texture data inline if there's no image file
[libs/gl.git] / blender / io_mspgl / util.py
index 70b005f6df60e84db38ea8c35c03fc0bbcc79123..6e8ec7746bde7c41b5c4791dfca602d7dd65503b 100644 (file)
@@ -1,5 +1,3 @@
-import os
-
 class Progress:
        def __init__(self, context):
                self.task = ""
@@ -63,10 +61,3 @@ def get_colormap(srgb):
                return linear_to_srgb
        else:
                return lambda x: x
-
-def image_name(img):
-       fp = img.filepath
-       if fp:
-               return os.path.split(fp)[1]
-       else:
-               return img.name