]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_texture.py
Simplify the resource separation options
[libs/gl.git] / blender / io_mspgl / export_texture.py
index fea02a7d7e3d885cc606be138bdb01dda93f58f8..1cf32afeb59072a58f67fc4fe8b529b8549cd522 100644 (file)
@@ -1,6 +1,6 @@
 class TextureExporter:
        def __init__(self):
-               self.pixels = 'REF'
+               self.inline_data = True
 
        def export_texture(self, texture):
                from .datafile import Resource, Statement, Token
@@ -20,7 +20,7 @@ class TextureExporter:
                        else:
                                tex_res.statements.append(Statement("min_filter", Token('NEAREST')))
 
-               if self.pixels=='REF':
+               if not self.inline_data:
                        from .util import image_name
                        tex_res.statements.append(Statement("image_data", image_name(texture.image)))
                else: