Handle async blank costumes

This commit is contained in:
rschamp
2020-10-14 10:16:41 -04:00
parent 1d019ad8ed
commit 1bec88a4e2

View File

@@ -148,7 +148,7 @@ class SVGSkin extends Skin {
const svgSize = this._svgRenderer.size;
if (svgSize[0] === 0 || svgSize[1] === 0) {
super.setEmptyImageData();
return;
return onSkinReady && onSkinReady();
}
const maxDimension = Math.ceil(Math.max(this.size[0], this.size[1]));