Merge pull request #12 from CharlotteGore/patch-1
Update DisplayObject.js
This commit is contained in:
commit
9a0cd873b5
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ PIXI.DisplayObject.prototype.updateTransform = function()
|
||||||
// TODO OPTIMIZE THIS!! with dirty
|
// TODO OPTIMIZE THIS!! with dirty
|
||||||
if(this.rotation != this.rotationCache)
|
if(this.rotation != this.rotationCache)
|
||||||
{
|
{
|
||||||
this.rotationCach = this.rotation;
|
this.rotationCache = this.rotation;
|
||||||
this._sr = Math.sin(this.rotation);
|
this._sr = Math.sin(this.rotation);
|
||||||
this._cr = Math.cos(this.rotation);
|
this._cr = Math.cos(this.rotation);
|
||||||
}
|
}
|
||||||
|
@ -103,4 +103,4 @@ PIXI.DisplayObject.prototype.updateTransform = function()
|
||||||
// TODO optimize?
|
// TODO optimize?
|
||||||
mat3.multiply(this.localTransform, this.parent.worldTransform, this.worldTransform);
|
mat3.multiply(this.localTransform, this.parent.worldTransform, this.worldTransform);
|
||||||
this.worldAlpha = this.alpha * this.parent.worldAlpha;
|
this.worldAlpha = this.alpha * this.parent.worldAlpha;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue