mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-17 15:24:43 -05: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
|
|
@ -339,6 +339,11 @@ func deserialize(dict : Dictionary) -> void:
|
|||
file_format = dict.export_file_format
|
||||
if dict.has("frame_duration"):
|
||||
frame_duration = dict.frame_duration
|
||||
else:
|
||||
for i in frames.size():
|
||||
if i < frame_duration.size():
|
||||
continue
|
||||
frame_duration.append(1)
|
||||
|
||||
func name_changed(value : String) -> void:
|
||||
name = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue