Skip to content

Commit 621673b

Browse files
committed
Revert worldScale setter.
1 parent 8159071 commit 621673b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pixi/display/DisplayObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ PIXI.DisplayObject.prototype.updateTransform = function(parent)
478478
this.worldAlpha = this.alpha * p.worldAlpha;
479479

480480
this.worldPosition.set(wt.tx, wt.ty);
481-
this.worldScale.set(Math.sqrt(wt.a * wt.a + wt.b * wt.b), Math.sqrt(wt.c * wt.c + wt.d * wt.d));
482-
this.worldRotation = Math.atan2(-wt.c, wt.d);
481+
this.worldScale.set(wt.a, wt.d);
482+
this.worldRotation = Math.atan2(wt.c, wt.d);
483483

484484
// reset the bounds each time this is called!
485485
this._currentBounds = null;

0 commit comments

Comments
 (0)