mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
Set Global.saved = true when creating a new image
This commit is contained in:
parent
fdf00171af
commit
30e8522677
2 changed files with 6 additions and 2 deletions
|
@ -22,6 +22,7 @@ func _on_CreateNewImage_confirmed() -> void:
|
|||
Global.canvases = Global.canvases # To trigger Global.canvases_changed()
|
||||
Global.current_frame = 0
|
||||
Global.layers = Global.layers # To trigger Global.layers_changed()
|
||||
Global.saved = true
|
||||
if fill_color.a > 0:
|
||||
Global.canvas.layers[0][0].fill(fill_color)
|
||||
Global.canvas.layers[0][0].lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue