Merge pull request #561 from adroitwhiz/setemptyimagedata-rotation-center

Set rotation center to [0, 0] in setEmptyImageData
This commit is contained in:
DD Liu 2020-03-19 14:58:16 -04:00 committed by GitHub
commit d37c847389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}