mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix deserialization of fps-less sprites
This commit is contained in:
parent
cb41a72b5b
commit
6943dc3ebe
@ -33,9 +33,10 @@
|
||||
var piskelData = data.piskel;
|
||||
var name = piskelData.name || 'Deserialized piskel';
|
||||
var description = piskelData.description || '';
|
||||
var fps = typeof piskelData.fps != 'undefined' ? piskelData.fps : 12;
|
||||
|
||||
var descriptor = new pskl.model.piskel.Descriptor(name, description);
|
||||
this.piskel_ = new pskl.model.Piskel(piskelData.width, piskelData.height, piskelData.fps, descriptor);
|
||||
this.piskel_ = new pskl.model.Piskel(piskelData.width, piskelData.height, fps, descriptor);
|
||||
this.hiddenFrames = piskelData.hiddenFrames || [];
|
||||
|
||||
this.layersToLoad_ = piskelData.layers.length;
|
||||
|
Loading…
Reference in New Issue
Block a user