mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fixes cast to IfcCurveSegment for access to ParentCurve
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user