mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Fixed FPS not being updated when Pixelorama first runs
This commit is contained in:
parent
031efc0cdb
commit
16d2c336e9
|
@ -15,7 +15,9 @@ func _ready() -> void:
|
|||
tag_scroll_container = Global.find_node_by_name(self, "TagScroll")
|
||||
fps_spinbox = find_node("FPSValue")
|
||||
timeline_scroll.get_h_scrollbar().connect("value_changed", self, "_h_scroll_changed")
|
||||
yield(get_tree(), "idle_frame")
|
||||
Global.animation_timer.wait_time = 1 / Global.current_project.fps
|
||||
fps_spinbox.value = Global.current_project.fps
|
||||
|
||||
|
||||
func _h_scroll_changed(value : float) -> void:
|
||||
|
|
Loading…
Reference in a new issue