diff --git a/src/UI/Canvas/Rulers/HorizontalRuler.gd b/src/UI/Canvas/Rulers/HorizontalRuler.gd index 35f1a991c..e2651c27b 100644 --- a/src/UI/Canvas/Rulers/HorizontalRuler.gd +++ b/src/UI/Canvas/Rulers/HorizontalRuler.gd @@ -14,6 +14,9 @@ func _ready() -> void: Global.camera.zoom_changed.connect(queue_redraw) Global.camera.rotation_changed.connect(queue_redraw) Global.camera.offset_changed.connect(queue_redraw) + await get_tree().process_frame + await get_tree().process_frame + 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 e21589832..efc74db4a 100644 --- a/src/UI/Canvas/Rulers/VerticalRuler.gd +++ b/src/UI/Canvas/Rulers/VerticalRuler.gd @@ -14,6 +14,9 @@ func _ready() -> void: Global.camera.zoom_changed.connect(queue_redraw) Global.camera.rotation_changed.connect(queue_redraw) Global.camera.offset_changed.connect(queue_redraw) + await get_tree().process_frame + await get_tree().process_frame + queue_redraw() func _gui_input(event: InputEvent) -> void: