From 431e7031377ee780d7780bf55135487a27cc73cb Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 16 Aug 2020 11:41:07 +0200 Subject: [PATCH] Don't emit material warnings without faces --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 7d06ac4d37..57a89e32c0 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -1770,7 +1770,7 @@ IfcGeom::BRepElement* 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; }