mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 02:54:43 -04:00
Made Unlink Cel work with UndoRedo
This commit is contained in:
parent
1e4a5cff8e
commit
09d2265056
3 changed files with 20 additions and 7 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue