]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Recognize a certain configuration of nodes as inverting Y for normals
[libs/gl.git] / blender / io_mspgl / export_material.py
index 10be7dcba60057665792b7291ab550122901e3e7..1323737f9b8f3c48c6ac5dfa0a4f188fb63b7adc 100644 (file)
@@ -50,7 +50,7 @@ class MaterialExporter:
                                if p.texture:
                                        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)
+                                               resources[tex_name] = texture_export.export_texture(p.texture, p.tex_usage, invert_green=p.invert_green)
 
                                        samp_name = sampler_export.get_sampler_name(p.texture)
                                        if samp_name not in resources: