1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Fix rulers being incorrect at the start

This commit is contained in:
Emmanouil Papadeas 2024-07-14 16:02:16 +03:00
parent 919d0117ca
commit 5d06af39b2
2 changed files with 6 additions and 0 deletions

View file

@ -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:

View file

@ -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: