mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
Setting the anchor dirties the Transform.
This commit is contained in:
parent
fd3898742f
commit
2b850ad4e8
1 changed files with 3 additions and 2 deletions
|
@ -192,8 +192,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
|
||||||
|
|
||||||
set: function (value)
|
set: function (value)
|
||||||
{
|
{
|
||||||
this.transform._anchorX = value;
|
this.transform.setAnchor(value);
|
||||||
this.transform._anchorY = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -210,6 +209,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
|
||||||
set: function (value)
|
set: function (value)
|
||||||
{
|
{
|
||||||
this.transform._anchorX = value;
|
this.transform._anchorX = value;
|
||||||
|
this.transform.dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -226,6 +226,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
|
||||||
set: function (value)
|
set: function (value)
|
||||||
{
|
{
|
||||||
this.transform._anchorY = value;
|
this.transform._anchorY = value;
|
||||||
|
this.transform.dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue