Set rotation center to [0, 0] in setEmptyImageData
This commit is contained in:
@@ -212,6 +212,9 @@ class Skin extends EventEmitter {
|
|||||||
this._emptyImageTexture = twgl.createTexture(gl, textureOptions);
|
this._emptyImageTexture = twgl.createTexture(gl, textureOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._rotationCenter[0] = 0;
|
||||||
|
this._rotationCenter[1] = 0;
|
||||||
|
|
||||||
this._silhouette.update(this._emptyImageData);
|
this._silhouette.update(this._emptyImageData);
|
||||||
this.emit(Skin.Events.WasAltered);
|
this.emit(Skin.Events.WasAltered);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user