mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Dragging and dropping frames to re-arrange them no longer makes selected_cels empty
This commit is contained in:
parent
98d41fca14
commit
21e2cd6bd0
|
@ -124,13 +124,16 @@ func drop_data(_pos, data) -> void:
|
||||||
|
|
||||||
Global.current_project.undo_redo.create_action("Change Frame Order")
|
Global.current_project.undo_redo.create_action("Change Frame Order")
|
||||||
Global.current_project.undo_redo.add_do_property(Global.current_project, "frames", new_frames)
|
Global.current_project.undo_redo.add_do_property(Global.current_project, "frames", new_frames)
|
||||||
|
|
||||||
if Global.current_project.current_frame == frame:
|
|
||||||
Global.current_project.undo_redo.add_do_property(Global.current_project, "current_frame", new_frame)
|
|
||||||
Global.current_project.undo_redo.add_undo_property(Global.current_project, "current_frame", Global.current_project.current_frame)
|
|
||||||
|
|
||||||
Global.current_project.undo_redo.add_undo_property(Global.current_project, "frames", Global.current_project.frames)
|
Global.current_project.undo_redo.add_undo_property(Global.current_project, "frames", Global.current_project.frames)
|
||||||
|
|
||||||
|
if Global.current_project.current_frame == new_frame:
|
||||||
|
Global.current_project.undo_redo.add_do_property(Global.current_project, "current_frame", frame)
|
||||||
|
else:
|
||||||
|
Global.current_project.undo_redo.add_do_property(Global.current_project, "current_frame", Global.current_project.current_frame)
|
||||||
|
|
||||||
|
Global.current_project.undo_redo.add_undo_property(Global.current_project, "current_frame", Global.current_project.current_frame)
|
||||||
|
|
||||||
|
|
||||||
Global.current_project.undo_redo.add_undo_method(Global, "undo")
|
Global.current_project.undo_redo.add_undo_method(Global, "undo")
|
||||||
Global.current_project.undo_redo.add_do_method(Global, "redo")
|
Global.current_project.undo_redo.add_do_method(Global, "redo")
|
||||||
Global.current_project.undo_redo.commit_action()
|
Global.current_project.undo_redo.commit_action()
|
||||||
|
|
Loading…
Reference in a new issue