]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Make texture channel handling in the Blender exporter more flexible
[libs/gl.git] / blender / io_mspgl / export_material.py
index a109ed24351f2782093cf70ab792654f69ba53eb..ffdae1cc7f782cd65ffc2781178e389f3a11fec7 100644 (file)
@@ -79,7 +79,7 @@ class MaterialExporter:
 
                        tex_name = p.texture.image.name+".tex2d"
                        if tex_name not in resources:
-                               resources[tex_name] = texture_export.export_texture(p.texture, p.tex_usage, invert_green=p.invert_green)
+                               resources[tex_name] = texture_export.export_texture(p.texture, p.tex_channels)
 
                        samp_name = sampler_export.get_sampler_name(p.texture)
                        if samp_name not in resources: