mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Propagate failure on representation to product
This commit is contained in:
@@ -348,7 +348,13 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcProduct* inst) {
|
|||||||
n->instance = inst;
|
n->instance = inst;
|
||||||
c->children = { n };
|
c->children = { n };
|
||||||
} else {
|
} else {
|
||||||
c->children = { map(body) };
|
auto child = map(body);
|
||||||
|
if (child) {
|
||||||
|
c->children = { child };
|
||||||
|
} else {
|
||||||
|
delete c;
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user