1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

formatting

This commit is contained in:
Variable 2023-05-17 15:43:54 +05:00 committed by GitHub
parent 5a3903501c
commit 39ea2283ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()