mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug in get_container not passing specified ifc_class to the parent #6155
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user