mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-28 22:30:04 -04:00
Merge pull request #561 from adroitwhiz/setemptyimagedata-rotation-center
Set rotation center to [0, 0] in setEmptyImageData
This commit is contained in:
commit
d37c847389
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue