1
0
Fork 0
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:
Manolis Papadeas 2020-12-17 02:52:13 +02:00
parent 031efc0cdb
commit 16d2c336e9

View file

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