mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix wrong calculation of requried bytes
This commit is contained in:
parent
4cc434edd6
commit
23a0768f8d
@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
// Layers
|
// Layers
|
||||||
for (var i = 0, layers = piskel.getLayers(); i < layers.length; i++) {
|
for (var i = 0, layers = piskel.getLayers(); i < layers.length; i++) {
|
||||||
bytes += 3 * 2;
|
bytes += 5 * 2;
|
||||||
bytes += layers[i].name.length * 2;
|
bytes += layers[i].name.length * 2;
|
||||||
bytes += framesData[i].length;
|
bytes += framesData[i].length;
|
||||||
if (bytes % 2 == 1) {
|
if (bytes % 2 == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user