Fix bug where you couldn't filter imported subelements without also selecting their parents

This commit is contained in:
Dion Moult
2021-10-14 18:47:48 +11:00
parent 199be3363f
commit 68fd0c0cf5
4 changed files with 7 additions and 1 deletions
@@ -54,3 +54,6 @@ class Usecase:
if not element.is_a("IfcProduct") or not element.ObjectPlacement:
return
element.ObjectPlacement = ifcopenshell.util.element.copy(self.file, element.ObjectPlacement)
element.ObjectPlacement.RelativePlacement = ifcopenshell.util.element.copy_deep(
self.file, element.ObjectPlacement.RelativePlacement
)