Fixes cast to IfcCurveSegment for access to ParentCurve

This commit is contained in:
Richard Brice
2023-09-22 13:49:18 -07:00
parent 04b70efd7f
commit 3e272efce4
+1 -1
View File
@@ -66,7 +66,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcCompositeCurve* inst) {
}
#ifdef SCHEMA_HAS_IfcCurveSegment
else if (segment->as<IfcSchema::IfcCurveSegment>()) {
auto crv = map(segment->as<IfcSchema::IfcCompositeCurveSegment>()->ParentCurve());
auto crv = map(segment->as<IfcSchema::IfcCurveSegment>()->ParentCurve());
for (auto& s : taxonomy::cast<taxonomy::loop>(crv)->children) {
loop->children.push_back(s);
}