1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Fixed issue with merging layers & undoing, and then drawing again

This commit is contained in:
OverloadedOrama 2020-03-22 02:38:39 +02:00
parent 5e942d7b3b
commit a439fc12e0

View file

@ -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: