Fix insane bug when replacing element that looped through every single element.

This commit is contained in:
Dion Moult
2025-02-20 19:18:35 +11:00
parent 4bb32b252d
commit f4d101788d
@@ -1333,7 +1333,7 @@ def get_referenced_elements(reference: ifcopenshell.entity_instance) -> set[ifco
def replace_element(element: ifcopenshell.entity_instance, replacement: ifcopenshell.entity_instance) -> None:
for inverse in element.file:
for inverse in element.file.get_inverse(element):
replace_attribute(inverse, element, replacement)