mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
fix broken serializer
This commit is contained in:
parent
2bcd354342
commit
dda566a218
@ -69,8 +69,9 @@
|
||||
frames.forEach(layer.addFrame.bind(layer));
|
||||
this.layers_[index] = layer;
|
||||
this.onLayerLoaded_();
|
||||
}.bind(this)).catch(function () {
|
||||
}.bind(this)).catch(function (error) {
|
||||
console.error('Failed to deserialize layer');
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
return layer;
|
||||
|
@ -2,7 +2,7 @@
|
||||
var ns = $.namespace('pskl.utils.serialization');
|
||||
|
||||
var areChunksValid = function (chunks) {
|
||||
return chunks.every(function (chunk) {
|
||||
return chunks.length && chunks.every(function (chunk) {
|
||||
return chunk.base64PNG;
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user