Don't emit material warnings without faces

This commit is contained in:
Thomas Krijnen
2020-08-16 11:41:07 +02:00
parent 31c349b0f1
commit 431e703137
+1 -1
View File
@@ -1770,7 +1770,7 @@ IfcGeom::BRepElement<P, PP>* IfcGeom::Kernel::create_brep_for_representation_and
} else {
bool some_items_without_style = false;
for (IfcGeom::IfcRepresentationShapeItems::iterator it = shapes.begin(); it != shapes.end(); ++it) {
if (!it->hasStyle()) {
if (!it->hasStyle() && count(it->Shape(), TopAbs_FACE)) {
some_items_without_style = true;
break;
}