]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_object.py
Use an explicit material slot name in RenderPass
[libs/gl.git] / blender / io_mspgl / export_object.py
index f01972351549dcb60ba5bc8c45ff140180498008..2d2c25ed8013369c74661ba7b1f3c6b087193bec 100644 (file)
@@ -141,7 +141,7 @@ class ObjectExporter:
                                        mat_name = material.name+".mat"
                                        mat_out = open_output(os.path.join(path, mat_name))
                                        self.export_material(material, mat_out)
-                                       out_file.write("material", '""', '"{}"'.format(mat_name))
+                                       out_file.write("material", '"surface"', '"{}"'.format(mat_name))
                                out_file.end()
                                out_file.end()
                        else: