mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
Fixed crash when loading a pxo older of 0.8.1 and selecting a frame other than the first
Had to do with Project.frame_duration not having as array members as it should.
This commit is contained in:
parent
28ca2cd87e
commit
4be0740170
3 changed files with 8 additions and 0 deletions
|
@ -218,6 +218,8 @@ func open_old_pxo_file(file : File, new_project : Project, first_line : String)
|
|||
|
||||
new_project.size = Vector2(width, height)
|
||||
new_project.frames.append(frame_class)
|
||||
if frame >= new_project.frame_duration.size():
|
||||
new_project.frame_duration.append(1)
|
||||
frame_line = file.get_line()
|
||||
frame += 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue