UndoRedo vol 9 - Add/Remove/Clone/Move/Merge Layers now have UndoRedo

This commit is contained in:
OverloadedOrama 2019-11-07 00:12:40 +02:00
parent c535ec801a
commit ec7b2129ff
3 changed files with 62 additions and 18 deletions

View file

@ -283,7 +283,6 @@ func handle_redo(action : String) -> void:
Global.undo_redo.add_do_property(Global, "selected_pixels", Global.selected_pixels)
Global.undo_redo.add_do_method(Global, "redo", canvases, layer_index)
Global.undo_redo.commit_action()
print("Do: ", Global.undo_redo.get_current_action_name())
func update_texture(layer_index : int) -> void:
layers[layer_index][1].create_from_image(layers[layer_index][0], 0)