From 772e16bb4d365b4abafadf42e7fc645e97d0e97e Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 22 Mar 2020 00:29:47 +0200 Subject: [PATCH] Fixed issue with merge down layer, the other frames were not being updated --- Scripts/AnimationTimeline.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/AnimationTimeline.gd b/Scripts/AnimationTimeline.gd index d7d3c55..fb8a1dc 100644 --- a/Scripts/AnimationTimeline.gd +++ b/Scripts/AnimationTimeline.gd @@ -264,8 +264,9 @@ func _on_MergeDownLayer_pressed() -> void: Global.undo_redo.add_undo_property(Global, "layers", Global.layers) Global.undo_redo.add_undo_property(Global, "current_layer", Global.current_layer) - Global.undo_redo.add_undo_method(Global, "undo", [Global.canvas]) - Global.undo_redo.add_do_method(Global, "redo", [Global.canvas]) + for c in Global.canvases: + Global.undo_redo.add_undo_method(Global, "undo", [c]) + Global.undo_redo.add_do_method(Global, "redo", [c]) Global.undo_redo.commit_action() func _on_OpacitySlider_value_changed(value) -> void: