]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Fixes and improvements to exporting materials
[libs/gl.git] / blender / io_mspgl / export_material.py
index 0860c28bbc2061a0cf1ed0c31b8689175504d7d9..c3aa654e41ed16ffb6a84e20b93e490f84fdac8e 100644 (file)
@@ -40,8 +40,8 @@ class MaterialExporter:
                                        textures["normal_map"] = s.texture
 
                if material.technique:
-                       if not obj.inherit_tech:
-                               return []
+                       if not material.inherit_tech:
+                               return tech_res
 
                        if self.single_file:
                                raise Exception("Can't export inherited technique to a single file")