mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:07:38 +00:00
Guarantee get_decomposing(IfcProject*) == nullptr
This commit is contained in:
@@ -145,6 +145,8 @@ IfcUtil::IfcBaseEntity* IfcGeom::Kernel::get_decomposing_entity(IfcUtil::IfcBase
|
|||||||
return get_decomposing_entity_impl(inst->as<Ifc2x3::IfcProduct>(), include_openings);
|
return get_decomposing_entity_impl(inst->as<Ifc2x3::IfcProduct>(), include_openings);
|
||||||
} else if (inst->as<Ifc4::IfcProduct>()) {
|
} else if (inst->as<Ifc4::IfcProduct>()) {
|
||||||
return get_decomposing_entity_impl(inst->as<Ifc4::IfcProduct>(), include_openings);
|
return get_decomposing_entity_impl(inst->as<Ifc4::IfcProduct>(), include_openings);
|
||||||
|
} else if (inst->declaration().name() == "IfcProject") {
|
||||||
|
return nullptr;
|
||||||
} else {
|
} else {
|
||||||
throw IfcParse::IfcException("Unexpected entity " + inst->declaration().name());
|
throw IfcParse::IfcException("Unexpected entity " + inst->declaration().name());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user