1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Update frame when unlinking it

This commit is contained in:
OverloadedOrama 2020-03-22 00:30:10 +02:00
parent 772e16bb4d
commit 5e942d7b3b
2 changed files with 2 additions and 1 deletions

View file

@ -99,6 +99,7 @@ func _on_PopupMenu_id_pressed(ID : int) -> void:
var tex := ImageTexture.new()
tex.create_from_image(sprite, 0)
Global.canvases[frame].layers[layer][1] = tex
Global.canvases[frame].update()
func remove_frame() -> void:
var canvas : Canvas = Global.canvases[frame]

View file

@ -66,6 +66,6 @@ func _on_LockButton_pressed() -> void:
func _on_LinkButton_pressed() -> void:
Global.layers[i][4] = !Global.layers[i][4]
if !Global.layers[i][5]:
if Global.layers[i][4] && !Global.layers[i][5]:
Global.layers[i][5].append(Global.canvas)
Global.layers[i][3].get_child(Global.current_frame)._ready()