Fix SVGSkin silhouettes

This commit is contained in:
adroitwhiz
2020-01-10 06:24:01 -05:00
parent 5215c99544
commit 2985f2ac54
2 changed files with 22 additions and 8 deletions

View File

@@ -100,6 +100,11 @@ class SVGSkin extends Skin {
return mip;
}
updateSilhouette (scale = 1) {
// Ensure a silhouette exists.
this.getTexture(scale);
}
/**
* @param {Array<number>} scale - The scaling factors to be used, each in the [0,100] range.
* @return {WebGLTexture} The GL texture representation of this skin when drawing at the given scale.