mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:44:42 -04:00
UndoRedo vol 9 - Add/Remove/Clone/Move/Merge Layers now have UndoRedo
This commit is contained in:
parent
c535ec801a
commit
ec7b2129ff
3 changed files with 62 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue