mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 19:09:07 +00:00
Move macro logic into template function; mark failures as intended #4915
This commit is contained in:
@@ -33,6 +33,10 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMappedItem* inst) {
|
||||
// @todo allow for multiple levels of matrix?
|
||||
auto shapes = taxonomy::dcast<taxonomy::collection>(map(rmap->MappedRepresentation()));
|
||||
if (shapes == nullptr) {
|
||||
if (failed_on_purpose_.find(rmap->MappedRepresentation()) != failed_on_purpose_.end()) {
|
||||
// propagate
|
||||
failed_on_purpose_.insert(inst);
|
||||
}
|
||||
return shapes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user