mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 16:14:50 -04:00
Fixed FPS not being updated when Pixelorama first runs
This commit is contained in:
parent
031efc0cdb
commit
16d2c336e9
1 changed files with 2 additions and 0 deletions
|
@ -15,7 +15,9 @@ func _ready() -> void:
|
||||||
tag_scroll_container = Global.find_node_by_name(self, "TagScroll")
|
tag_scroll_container = Global.find_node_by_name(self, "TagScroll")
|
||||||
fps_spinbox = find_node("FPSValue")
|
fps_spinbox = find_node("FPSValue")
|
||||||
timeline_scroll.get_h_scrollbar().connect("value_changed", self, "_h_scroll_changed")
|
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
|
Global.animation_timer.wait_time = 1 / Global.current_project.fps
|
||||||
|
fps_spinbox.value = Global.current_project.fps
|
||||||
|
|
||||||
|
|
||||||
func _h_scroll_changed(value : float) -> void:
|
func _h_scroll_changed(value : float) -> void:
|
||||||
|
|
Loading…
Add table
Reference in a new issue