mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix insane bug when replacing element that looped through every single element.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user