Fixed collections not being geom_items in mapped item handling

This commit is contained in:
Thomas Krijnen
2024-06-28 13:38:56 +02:00
parent dc8766cf0a
commit db50c87bf4
+1 -1
View File
@@ -31,7 +31,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcMappedItem* inst) {
// @todo immutable for caching?
// @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) {
return shapes;
}