diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 22a2e4320f..f2447debe3 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -94,8 +94,10 @@ bool IfcGeom::convert(const Ifc2x3::IfcExtrudedAreaSolid::ptr l, TopoDS_Shape& s } bool IfcGeom::convert(const Ifc2x3::IfcFacetedBrep::ptr l, IfcRepresentationShapeItems& shape) { TopoDS_Shape s; + const SurfaceStyle* collective_style = get_style(l); if (IfcGeom::convert_shape(l->Outer(),s) ) { - shape.push_back(IfcRepresentationShapeItem(s, get_style(l->Outer()))); + const SurfaceStyle* indiv_style = get_style(l->Outer()); + shape.push_back(IfcRepresentationShapeItem(s, indiv_style ? indiv_style : collective_style)); return true; } return false;