update to file size calc

This commit is contained in:
Vilius 2017-06-11 15:51:54 +03:00
parent c4a23b384b
commit d068bc8612

View File

@ -772,7 +772,7 @@ function LAYER_CLASS() {
//take data
for(var i = LAYER.layers.length-1; i >=0; i--){
if (LAYER.layers[i].visible == false)
only_one_layer;
continue;
if (only_one_layer == true && type != 'JSON' && i != LAYER.layer_active)
continue;
ctx.drawImage(document.getElementById(LAYER.layers[i].name), 0, 0, WIDTH, HEIGHT);