]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_object.py
Wrap material before passing it to create_technique_resource
[libs/gl.git] / blender / io_mspgl / export_object.py
index 040f5302f060536c708c0bb9a0300a3c12444317..a8f55e92c34834a01ac0f17115b44b2d1343fd31 100644 (file)
@@ -66,6 +66,7 @@ class ObjectExporter:
                                if material.render_mode!='EXTERNAL':
                                        tech_name = material.name+".tech"
                                        if tech_name not in resources:
+                                               material = Material(material)
                                                material_export.export_technique_resources(material, resources)
                                                resources[tech_name] = material_export.export_technique(material, resources)
                        elif "stub.tech" not in resources: