Fix bug where subelement coordinates were incorrectly calculated in non SI units

This commit is contained in:
Dion Moult
2021-11-17 16:22:23 +11:00
parent ddb8abff0f
commit 18719c16df
2 changed files with 44 additions and 1 deletions
@@ -79,7 +79,7 @@ class Usecase:
for referenced_placement in placement.ReferencedByPlacements:
matrix = ifcopenshell.util.placement.get_local_placement(referenced_placement)
for obj in referenced_placement.PlacesObject:
results.append({"product": obj, "matrix": matrix, "is_si": self.settings["is_si"], "should_transform_children": False})
results.append({"product": obj, "matrix": matrix, "is_si": False, "should_transform_children": False})
results.extend(self.get_children_settings(referenced_placement))
return results