Minor fix to loading nested ports

This commit is contained in:
Dion Moult
2024-01-08 16:03:57 +11:00
parent 9093c9d419
commit 5c7e70e987
+1 -1
View File
@@ -1675,7 +1675,7 @@ class IfcImporter:
elif getattr(element, "Decomposes", None):
aggregate = ifcopenshell.util.element.get_aggregate(element)
return self.collections[aggregate.GlobalId].objects.link(obj)
elif getattr(element, "Nests", None):
elif getattr(element, "Nests", None) and not element.is_a("IfcPort"):
nest = ifcopenshell.util.element.get_nest(element)
return self.collections[nest.GlobalId].objects.link(obj)
else: