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
@@ -105,7 +105,7 @@ the boolean, or create a **Blacklist Filter Mode** to exclude the element from
import.
These types of errors are usually problems with external software (i.e. not
internationally by the end-user) and typically do not affect critical geometry
intentionally by the end-user) and typically do not affect critical geometry
and can be worked around.
Fully resolving boolean issues is a complex case by case topic and not covered
@@ -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: