Setting the anchor dirties the Transform.

This commit is contained in:
Richard Davey 2016-10-27 15:14:09 +01:00
parent fd3898742f
commit 2b850ad4e8

View file

@ -192,8 +192,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
set: function (value)
{
this.transform._anchorX = value;
this.transform._anchorY = value;
this.transform.setAnchor(value);
}
},
@ -210,6 +209,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
set: function (value)
{
this.transform._anchorX = value;
this.transform.dirty = true;
}
},
@ -226,6 +226,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
set: function (value)
{
this.transform._anchorY = value;
this.transform.dirty = true;
}
},