Made Unlink Cel work with UndoRedo

This commit is contained in:
OverloadedOrama 2020-04-21 21:34:45 +03:00
parent 1e4a5cff8e
commit 09d2265056
3 changed files with 20 additions and 7 deletions

View file

@ -54,6 +54,8 @@ func _ready() -> void:
layers.append([sprite, tex, 1])
if self in l[5]:
# If the linked button is pressed, set as the Image & ImageTexture
# to be the same as the first linked cel
var current_layer := layers.size() - 1
layers[current_layer][0] = l[5][0].layers[current_layer][0]
layers[current_layer][1] = l[5][0].layers[current_layer][1]