Fixed issue where the wrong amount of cels were being created

The new image's frames had as many cels as the previously selected project
This commit is contained in:
OverloadedOrama 2020-06-05 18:19:05 +03:00
parent d37b07db5d
commit 7a61f1ea4a
3 changed files with 7 additions and 3 deletions

View file

@ -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()
var frame : Frame = Global.canvas.new_empty_frame(false, true)
Global.projects.append(Project.new([frame]))
Global.tabs.current_tab = Global.tabs.get_tab_count() - 1
Global.current_project.size = Vector2(width, height).floor()