mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 09:22:41 +00:00
Fixes bug with fallback position introduced in 206cd6bb
This commit is contained in:
@@ -36,12 +36,9 @@ def update_fallback_position(file: ifcopenshell.file, lp: entity_instance):
|
|||||||
|
|
||||||
p = ifcopenshell.util.placement.get_local_placement(lp)
|
p = ifcopenshell.util.placement.get_local_placement(lp)
|
||||||
|
|
||||||
|
x = float(p[0, 3])
|
||||||
unit_scale = ifcopenshell.util.unit.calculate_unit_scale(file)
|
y = float(p[1, 3])
|
||||||
|
z = float(p[2, 3])
|
||||||
x = float(p[0, 3])*unit_scale
|
|
||||||
y = float(p[1, 3])*unit_scale
|
|
||||||
z = float(p[2, 3])*unit_scale
|
|
||||||
|
|
||||||
rx = float(p[0, 0])
|
rx = float(p[0, 0])
|
||||||
ry = float(p[1, 0])
|
ry = float(p[1, 0])
|
||||||
|
|||||||
Reference in New Issue
Block a user