From a439fc12e064f56ec7350b86bcc87ce8ada53213 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sun, 22 Mar 2020 02:38:39 +0200 Subject: [PATCH] Fixed issue with merging layers & undoing, and then drawing again --- Scripts/AnimationTimeline.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Scripts/AnimationTimeline.gd b/Scripts/AnimationTimeline.gd index fb8a1dc1d..90fa24968 100644 --- a/Scripts/AnimationTimeline.gd +++ b/Scripts/AnimationTimeline.gd @@ -264,9 +264,8 @@ 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) - 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.add_undo_method(Global, "undo", Global.canvases) + Global.undo_redo.add_do_method(Global, "redo", Global.canvases) Global.undo_redo.commit_action() func _on_OpacitySlider_value_changed(value) -> void: