mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Remove unneeded lines in AnimationTimeline.gd
This commit is contained in:
parent
5c9f0d8c18
commit
78fda42743
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue