From f080b6041e02cf9da337f1b7827d36a92d0f1743 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 28 Jan 2022 13:23:26 +0100 Subject: [PATCH] Fix typo. --- game/addons/mesh_data_resource_editor/MIDGizmo.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/addons/mesh_data_resource_editor/MIDGizmo.gd b/game/addons/mesh_data_resource_editor/MIDGizmo.gd index c67e1d23..84d13e2f 100644 --- a/game/addons/mesh_data_resource_editor/MIDGizmo.gd +++ b/game/addons/mesh_data_resource_editor/MIDGizmo.gd @@ -110,7 +110,7 @@ func set_handle(index: int, camera: Camera, point: Vector2): var ofs : Vector3 = Vector3() ofs = camera.get_global_transform().basis.x - + if (axis_constraint & AxisConstraint.X) != 0: ofs.x *= relative.x * 0.01 else: @@ -119,7 +119,7 @@ func set_handle(index: int, camera: Camera, point: Vector2): if (axis_constraint & AxisConstraint.Y) != 0: ofs.y = relative.y * -0.01 else: - ofs.x = 0 + ofs.y = 0 if (axis_constraint & AxisConstraint.Z) != 0: ofs.z *= relative.x * 0.01