mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:14:42 -04:00
Fix issue with frame moving and current_frame not changing
This bug actually originates from before the timeline remake and can be found in v0.6.2 and potentially earlier versions.
This commit is contained in:
parent
9812a34b8b
commit
4969978f46
2 changed files with 4 additions and 1 deletions
|
@ -126,6 +126,10 @@ func change_frame_order(rate : int) -> void:
|
|||
Global.undo_redo.add_do_property(Global.canvases[frame], "frame", change)
|
||||
Global.undo_redo.add_do_property(Global.canvases[change], "frame", frame)
|
||||
|
||||
if Global.current_frame == frame:
|
||||
Global.undo_redo.add_do_property(Global, "current_frame", change)
|
||||
Global.undo_redo.add_undo_property(Global, "current_frame", Global.current_frame)
|
||||
|
||||
Global.undo_redo.add_undo_property(Global, "canvases", Global.canvases)
|
||||
Global.undo_redo.add_undo_property(Global.canvases[frame], "frame", frame)
|
||||
Global.undo_redo.add_undo_property(Global.canvases[change], "frame", change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue