If material name is empty when writing collada file, name it as a missing material. Logger::Notice() objects that do not have a material assigned.

This commit is contained in:
Michael Sundqvist
2018-03-28 17:33:46 +03:00
committed by Thomas Krijnen
parent fe1cb9e92b
commit e7a8a97639
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -1455,6 +1455,9 @@ IfcGeom::BRepElement<P>* IfcGeom::Kernel::create_brep_for_representation_and_pro
}
}
}
else {
Logger::Notice("Object '" + product->Name() + "' (guid " + product->GlobalId() + " ) has no material!");
}
if (material_style_applied) {
representation_id_builder << "-material-" << single_material->entity->id();