Fix bug where some appended assets created invalid graphs due to poor purging

This commit is contained in:
Dion Moult
2022-06-09 18:59:20 +10:00
parent b5e27e4ced
commit f451c51451
2 changed files with 2 additions and 2 deletions
@@ -109,7 +109,7 @@ class Usecase:
for inverse in self.file.get_inverse(added_context):
ifcopenshell.util.element.replace_attribute(inverse, added_context, equivalent_existing_context)
for added_context in added_contexts:
ifcopenshell.util.element.remove_deep(self.file, added_context)
ifcopenshell.util.element.remove_deep2(self.file, added_context)
element_type = ifcopenshell.util.element.get_type(self.settings["element"])
if element_type: