Fix bug in get_container not passing specified ifc_class to the parent #6155

This commit is contained in:
Andrej730
2025-02-14 17:49:01 +05:00
parent 1014487d82
commit 20e1fc2618
2 changed files with 21 additions and 1 deletions
@@ -935,7 +935,7 @@ def get_container(
return container
container = get_aggregate(container)
elif parent := get_parent(element):
return get_container(parent, should_get_direct)
return get_container(parent, should_get_direct, ifc_class)
def get_referenced_structures(element: ifcopenshell.entity_instance) -> list[ifcopenshell.entity_instance]: