mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where assigning a spatial container didn't work with non local placements
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user