From 502eb1aac448513b61fe73c7151572b4374ed1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Fri, 26 Aug 2016 02:00:15 +0200 Subject: [PATCH] Fix missing name and description from v2 --- src/js/utils/serialization/backward/Deserializer_v2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/utils/serialization/backward/Deserializer_v2.js b/src/js/utils/serialization/backward/Deserializer_v2.js index 185354e2..3d1b3721 100644 --- a/src/js/utils/serialization/backward/Deserializer_v2.js +++ b/src/js/utils/serialization/backward/Deserializer_v2.js @@ -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;