mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix missing name and description from v2
This commit is contained in:
parent
218c0b511b
commit
502eb1aac4
@ -12,9 +12,10 @@
|
||||
ns.Deserializer_v2.prototype.deserialize = function (name) {
|
||||
var data = this.data_;
|
||||
var piskelData = data.piskel;
|
||||
name = name || 'Deserialized piskel';
|
||||
name = piskelData.name || 'Deserialized piskel';
|
||||
description = piskelData.description || '';
|
||||
|
||||
var descriptor = new pskl.model.piskel.Descriptor(name, '');
|
||||
var descriptor = new pskl.model.piskel.Descriptor(name, description);
|
||||
this.piskel_ = new pskl.model.Piskel(piskelData.width, piskelData.height, descriptor);
|
||||
|
||||
this.layersToLoad_ = piskelData.layers.length;
|
||||
|
Loading…
Reference in New Issue
Block a user