mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Fix rulers being incorrect at the start
This commit is contained in:
parent
919d0117ca
commit
5d06af39b2
|
@ -14,6 +14,9 @@ func _ready() -> void:
|
||||||
Global.camera.zoom_changed.connect(queue_redraw)
|
Global.camera.zoom_changed.connect(queue_redraw)
|
||||||
Global.camera.rotation_changed.connect(queue_redraw)
|
Global.camera.rotation_changed.connect(queue_redraw)
|
||||||
Global.camera.offset_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:
|
func _gui_input(event: InputEvent) -> void:
|
||||||
|
|
|
@ -14,6 +14,9 @@ func _ready() -> void:
|
||||||
Global.camera.zoom_changed.connect(queue_redraw)
|
Global.camera.zoom_changed.connect(queue_redraw)
|
||||||
Global.camera.rotation_changed.connect(queue_redraw)
|
Global.camera.rotation_changed.connect(queue_redraw)
|
||||||
Global.camera.offset_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:
|
func _gui_input(event: InputEvent) -> void:
|
||||||
|
|
Loading…
Reference in a new issue