Fix tilesets in event

This commit is contained in:
ckcz123 2020-08-17 20:49:29 +08:00
parent dcc5a4aafa
commit ce1968e158

View File

@ -287,6 +287,8 @@ loader.prototype.loadImagesFromZip = function (url, names, toSave, onprogress, o
img.onload = function () {
cnt--;
URL.revokeObjectURL(url);
img.setAttribute('_width', img.width);
img.setAttribute('_height', img.height);
if (cnt == 0 && onfinished) onfinished();
}
img.src = url;