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

Remove unneeded lines in AnimationTimeline.gd

This commit is contained in:
Emmanouil Papadeas 2023-03-29 15:24:30 +03:00
parent 5c9f0d8c18
commit 78fda42743

View file

@ -497,7 +497,6 @@ func play_animation(play: bool, forward_dir: bool) -> void:
func _on_NextFrame_pressed() -> void:
var project := Global.current_project
Global.canvas.selection.transform_content_confirm()
if project.current_frame < project.frames.size() - 1:
project.selected_cels.clear()
project.change_cel(project.current_frame + 1, -1)
@ -505,20 +504,17 @@ func _on_NextFrame_pressed() -> void:
func _on_PreviousFrame_pressed() -> void:
var project := Global.current_project
Global.canvas.selection.transform_content_confirm()
if project.current_frame > 0:
project.selected_cels.clear()
project.change_cel(project.current_frame - 1, -1)
func _on_LastFrame_pressed() -> void:
Global.canvas.selection.transform_content_confirm()
Global.current_project.selected_cels.clear()
Global.current_project.change_cel(Global.current_project.frames.size() - 1, -1)
func _on_FirstFrame_pressed() -> void:
Global.canvas.selection.transform_content_confirm()
Global.current_project.selected_cels.clear()
Global.current_project.change_cel(0, -1)