From 33ffa88a5b8edec7dc4827c48d70e476fe4dff37 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 1 Jan 2024 02:00:56 +0200 Subject: [PATCH] Remove unneeded signal connect from the rulers --- src/UI/Canvas/Rulers/HorizontalRuler.gd | 1 - src/UI/Canvas/Rulers/VerticalRuler.gd | 1 - 2 files changed, 2 deletions(-) diff --git a/src/UI/Canvas/Rulers/HorizontalRuler.gd b/src/UI/Canvas/Rulers/HorizontalRuler.gd index aa499f45f..ec66e964f 100644 --- a/src/UI/Canvas/Rulers/HorizontalRuler.gd +++ b/src/UI/Canvas/Rulers/HorizontalRuler.gd @@ -11,7 +11,6 @@ var last: Vector2 func _ready() -> void: Global.project_changed.connect(queue_redraw) - Global.main_viewport.item_rect_changed.connect(queue_redraw) func _gui_input(event: InputEvent) -> void: diff --git a/src/UI/Canvas/Rulers/VerticalRuler.gd b/src/UI/Canvas/Rulers/VerticalRuler.gd index 89b851e5b..6bc9bc7f9 100644 --- a/src/UI/Canvas/Rulers/VerticalRuler.gd +++ b/src/UI/Canvas/Rulers/VerticalRuler.gd @@ -11,7 +11,6 @@ var last: Vector2 func _ready() -> void: Global.project_changed.connect(queue_redraw) - Global.main_viewport.item_rect_changed.connect(queue_redraw) func _gui_input(event: InputEvent) -> void: