1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Don't let preview animation play if there's only one frame

This commit is contained in:
OverloadedOrama 2020-08-02 01:54:12 +03:00
parent 7269b45fc5
commit 5bbea6fa03

View file

@ -13,6 +13,9 @@ func _on_PreviewZoomSlider_value_changed(value : float) -> void:
func _on_PlayButton_toggled(button_pressed : bool) -> void:
if button_pressed:
if Global.current_project.frames.size() <= 1:
play_button.pressed = false
return
canvas_preview.animation_timer.start()
Global.change_button_texturerect(play_button.get_child(0), "pause.png")
else: