]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_texture.py
Load textures in a type-generic way
[libs/gl.git] / blender / io_mspgl / export_texture.py
index 54b2105492f898e30f8502f936e518b30b983c84..3d21cd1a796a77d540cda19ff72ba39179509ea6 100644 (file)
@@ -29,7 +29,9 @@ class TextureExporter:
        def export_texture(self, tex_node, usage='RGB', *, invert_green=False):
                image = tex_node.image
                from .datafile import Resource, Statement, Token
-               tex_res = Resource(image.name+".tex2d", "texture2d")
+               tex_res = Resource(image.name+".tex", "texture")
+
+               tex_res.statements.append(Statement("type", Token("\\2d")))
 
                if tex_node.use_mipmap:
                        tex_res.statements.append(Statement("generate_mipmap", True))