Fixes bug with fallback position introduced in 206cd6bb

(cherry picked from commit ade03b171a)
This commit is contained in:
Richard Brice
2026-07-10 09:54:03 -07:00
committed by Dion Moult
parent 9fc01de468
commit a674dc5641
@@ -36,12 +36,9 @@ def update_fallback_position(file: ifcopenshell.file, lp: entity_instance):
p = ifcopenshell.util.placement.get_local_placement(lp)
unit_scale = ifcopenshell.util.unit.calculate_unit_scale(file)
x = float(p[0, 3])*unit_scale
y = float(p[1, 3])*unit_scale
z = float(p[2, 3])*unit_scale
x = float(p[0, 3])
y = float(p[1, 3])
z = float(p[2, 3])
rx = float(p[0, 0])
ry = float(p[1, 0])