From dd93869411d5016ecb228687ba9bfbce58cd8ee3 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Wed, 4 Mar 2020 23:49:09 -0500 Subject: [PATCH] Set rotation center to [0, 0] in setEmptyImageData --- src/Skin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Skin.js b/src/Skin.js index d3709c226..0f08e47dd 100644 --- a/src/Skin.js +++ b/src/Skin.js @@ -212,6 +212,9 @@ class Skin extends EventEmitter { this._emptyImageTexture = twgl.createTexture(gl, textureOptions); } + this._rotationCenter[0] = 0; + this._rotationCenter[1] = 0; + this._silhouette.update(this._emptyImageData); this.emit(Skin.Events.WasAltered); }