Fix bug where assigning a spatial container didn't work with non local placements

This commit is contained in:
Dion Moult
2021-10-05 16:00:26 +11:00
parent f284ae5753
commit c105b8f3a7
7 changed files with 22 additions and 11 deletions
@@ -45,7 +45,8 @@ class Usecase:
}
)
if getattr(self.settings["product"], "ObjectPlacement", None):
placement = getattr(self.settings["product"], "ObjectPlacement", None)
if placement and placement.is_a("IfcLocalPlacement"):
ifcopenshell.api.run(
"geometry.edit_object_placement",
self.file,