From 69b3f308541fb4d048231f0e7b4c8de0c8eb51e5 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 11 Feb 2025 17:54:33 +0200 Subject: [PATCH] Hide the rotation gizmo again Unfortunately I couldn't make it work well, and v1.1 is about to be in beta. I will continue working on it for a future version. --- src/UI/Canvas/Selection.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UI/Canvas/Selection.gd b/src/UI/Canvas/Selection.gd index 6cfd68334..4fad0d9bf 100644 --- a/src/UI/Canvas/Selection.gd +++ b/src/UI/Canvas/Selection.gd @@ -109,7 +109,7 @@ func _ready() -> void: gizmos.append(Gizmo.new(Gizmo.Type.SCALE, Vector2i(0, 1))) # Center bottom gizmos.append(Gizmo.new(Gizmo.Type.SCALE, Vector2i(-1, 1))) # Bottom left gizmos.append(Gizmo.new(Gizmo.Type.SCALE, Vector2i(-1, 0))) # Center left - gizmos.append(Gizmo.new(Gizmo.Type.ROTATE)) # Rotation gizmo (temp) + #gizmos.append(Gizmo.new(Gizmo.Type.ROTATE)) # Rotation gizmo (temp) func _input(event: InputEvent) -> void: @@ -313,9 +313,9 @@ func _update_gizmos() -> void: ) # Rotation gizmo (temp) - gizmos[8].rect = Rect2( - Vector2((rect_end.x + rect_pos.x - size.x) / 2, rect_pos.y - size.y - (size.y * 2)), size - ) + #gizmos[8].rect = Rect2( + #Vector2((rect_end.x + rect_pos.x - size.x) / 2, rect_pos.y - size.y - (size.y * 2)), size + #) queue_redraw()