mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Fix bug where clicking on previous/next frame when only one frame exists makes the cel unselected
Apparently this bug exists at least since v0.10
This commit is contained in:
parent
2ce9f72c51
commit
6b587688f1
|
@ -498,16 +498,16 @@ 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()
|
||||
project.selected_cels.clear()
|
||||
if project.current_frame < project.frames.size() - 1:
|
||||
project.selected_cels.clear()
|
||||
project.change_cel(project.current_frame + 1, -1)
|
||||
|
||||
|
||||
func _on_PreviousFrame_pressed() -> void:
|
||||
var project := Global.current_project
|
||||
Global.canvas.selection.transform_content_confirm()
|
||||
project.selected_cels.clear()
|
||||
if project.current_frame > 0:
|
||||
project.selected_cels.clear()
|
||||
project.change_cel(project.current_frame - 1, -1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue