mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-13 06:45:17 +00:00
Update frame when unlinking it
This commit is contained in:
parent
772e16bb4d
commit
5e942d7b3b
2 changed files with 2 additions and 1 deletions
|
@ -99,6 +99,7 @@ func _on_PopupMenu_id_pressed(ID : int) -> void:
|
||||||
var tex := ImageTexture.new()
|
var tex := ImageTexture.new()
|
||||||
tex.create_from_image(sprite, 0)
|
tex.create_from_image(sprite, 0)
|
||||||
Global.canvases[frame].layers[layer][1] = tex
|
Global.canvases[frame].layers[layer][1] = tex
|
||||||
|
Global.canvases[frame].update()
|
||||||
|
|
||||||
func remove_frame() -> void:
|
func remove_frame() -> void:
|
||||||
var canvas : Canvas = Global.canvases[frame]
|
var canvas : Canvas = Global.canvases[frame]
|
||||||
|
|
|
@ -66,6 +66,6 @@ func _on_LockButton_pressed() -> void:
|
||||||
|
|
||||||
func _on_LinkButton_pressed() -> void:
|
func _on_LinkButton_pressed() -> void:
|
||||||
Global.layers[i][4] = !Global.layers[i][4]
|
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][5].append(Global.canvas)
|
||||||
Global.layers[i][3].get_child(Global.current_frame)._ready()
|
Global.layers[i][3].get_child(Global.current_frame)._ready()
|
||||||
|
|
Loading…
Add table
Reference in a new issue