]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Improve error reporting in the Blender exporter
[libs/gl.git] / blender / io_mspgl / export_material.py
index 696622183153a5b0d244d0eda3ca64dafdb74159..bf7e2b3f5b8d4824dc3a132b75ff93a93b0cdce8 100644 (file)
@@ -65,7 +65,7 @@ class MaterialExporter:
                mat_res = Resource(material.name+".mat", "material")
 
                if material.type!="pbr" and material.type!="unlit":
-                       raise Exception("Can't export unknown material type "+material.type)
+                       raise Exception("Can't export material {} of unknown type {}".format(material.name, material.type))
 
                mat_res.statements.append(Statement("type", Token(material.type)));
                for p in material.properties: