Fixed crash when creating a new project

Caused by #357
This commit is contained in:
Manolis Papadeas 2020-10-23 17:44:37 +03:00
parent 36d88efbd3
commit b3aa4a6343
3 changed files with 2 additions and 2 deletions

View file

@ -39,6 +39,7 @@ func _init(_frames := [], _name := tr("untitled"), _size := Vector2(64, 64)) ->
frames = _frames
name = _name
size = _size
frame_duration.append(1)
select_all_pixels()
undo_redo = UndoRedo.new()