mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 19:56:20 +00:00
Fixed collections not being geom_items in mapped item handling
This commit is contained in:
@@ -31,7 +31,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMappedItem* inst) {
|
|||||||
|
|
||||||
// @todo immutable for caching?
|
// @todo immutable for caching?
|
||||||
// @todo allow for multiple levels of matrix?
|
// @todo allow for multiple levels of matrix?
|
||||||
auto shapes = taxonomy::cast<taxonomy::geom_item>(map(rmap->MappedRepresentation()));
|
auto shapes = taxonomy::dcast<taxonomy::collection>(map(rmap->MappedRepresentation()));
|
||||||
if (shapes == nullptr) {
|
if (shapes == nullptr) {
|
||||||
return shapes;
|
return shapes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user