diff --git a/src/core/display/DisplayObject.js b/src/core/display/DisplayObject.js index 0411e79..8410d61 100644 --- a/src/core/display/DisplayObject.js +++ b/src/core/display/DisplayObject.js @@ -175,6 +175,7 @@ /** * The coordinate of the object relative to the local coordinates of the parent. + * Assignment by value since pixi-v4. * * @member {PIXI.Point|PIXI.ObservablePoint} * @memberof PIXI.DisplayObject# @@ -185,12 +186,13 @@ return this.transform.position; }, set: function(value) { - this.transform.position = value; + this.transform.position.copy(value); } }, /** * The scale factor of the object. + * Assignment by value since pixi-v4. * * @member {PIXI.Point|PIXI.ObservablePoint} * @memberof PIXI.DisplayObject# @@ -200,7 +202,7 @@ return this.transform.scale; }, set: function(value) { - this.transform.scale = value; + this.transform.scale.copy(value); } }, @@ -215,12 +217,13 @@ return this.transform.pivot; }, set: function(value) { - this.transform.pivot = value; + this.transform.pivot.copy(value); } }, /** * The skew factor for the object in radians. + * Assignment by value since pixi-v4. * * @member {PIXI.ObservablePoint} * @memberof PIXI.DisplayObject# @@ -230,7 +233,7 @@ return this.transform.skew; }, set: function(value) { - this.transform.skew = value; + this.transform.skew.copy(value); } },