mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
formatting
This commit is contained in:
parent
5a3903501c
commit
39ea2283ea
|
@ -575,9 +575,7 @@ func play_animation(play: bool, forward_dir: bool) -> void:
|
|||
|
||||
if play:
|
||||
Global.animation_timer.set_one_shot(true) # wait_time can't change correctly if it's playing
|
||||
var duration: float = (
|
||||
Global.current_project.frames[Global.current_project.current_frame].duration
|
||||
)
|
||||
var duration: float = Global.current_project.frames[Global.current_project.current_frame].duration
|
||||
var fps = Global.current_project.fps
|
||||
Global.animation_timer.wait_time = duration * (1 / fps)
|
||||
Global.animation_timer.start()
|
||||
|
|
Loading…
Reference in a new issue