mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Fix bug where assigning a new container would shift object placements incorrectly due to SI unit conversion
This commit is contained in:
@@ -13,7 +13,6 @@ class Usecase:
|
||||
self.settings[key] = value
|
||||
|
||||
def execute(self):
|
||||
print('EXECUTING', self.settings["product"])
|
||||
if not hasattr(self.settings["product"], "ObjectPlacement"):
|
||||
return
|
||||
self.unit_scale = ifcopenshell.util.unit.calculate_unit_scale(self.file)
|
||||
@@ -25,7 +24,6 @@ class Usecase:
|
||||
|
||||
children_settings = []
|
||||
if not self.settings["should_transform_children"]:
|
||||
print("THIS IS RUNNING")
|
||||
children_settings = self.get_children_settings(self.settings["product"].ObjectPlacement)
|
||||
|
||||
placement_rel_to = self.get_placement_rel_to()
|
||||
|
||||
Reference in New Issue
Block a user