mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Fix bug where cursor was not placed in the correct unit after a global->local coordinate conversion
This commit is contained in:
@@ -284,6 +284,8 @@ class ConvertGlobalToLocal(bpy.types.Operator):
|
||||
)
|
||||
|
||||
props.coordinate_output = ",".join([str(r) for r in results])
|
||||
bpy.context.scene.cursor.location = results
|
||||
|
||||
scale = ifcopenshell.util.unit.calculate_unit_scale(IfcStore.get_file())
|
||||
bpy.context.scene.cursor.location = (results[0] * scale, results[1] * scale, results[2] * scale)
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user