mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 13:44:44 -04:00
Fixed issue where new images had the size of the previous project
This commit is contained in:
parent
66feec8f21
commit
8118381b0b
4 changed files with 7 additions and 4 deletions
|
@ -74,7 +74,7 @@ func _on_CreateNewImage_confirmed() -> void:
|
|||
var height : int = height_value.value
|
||||
var fill_color : Color = fill_color_node.color
|
||||
|
||||
var frame : Frame = Global.canvas.new_empty_frame(false, true)
|
||||
var frame : Frame = Global.canvas.new_empty_frame(false, true, Vector2(width, height))
|
||||
var new_project := Project.new([frame])
|
||||
new_project.layers.append(Layer.new())
|
||||
Global.projects.append(new_project)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue