Skip to content

Commit d8adad4

Browse files
committed
Dirty on creation.
1 parent 64838a3 commit d8adad4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/Transform.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ Phaser.Component.Transform = function (gameObject, x, y, scaleX, scaleY)
5151
this._worldScaleX = scaleX;
5252
this._worldScaleY = scaleY;
5353

54-
this._dirty = false;
54+
this._dirty = true;
55+
56+
this.game.updates.add(this);
5557

5658
// The parent Transform (NOT the parent GameObject, although very often they are related)
5759
this.parent = null;
@@ -401,7 +403,7 @@ Object.defineProperties(Phaser.Component.Transform.prototype, {
401403
{
402404
if (!this._dirty)
403405
{
404-
this.game.transforms.add(this);
406+
this.game.updates.add(this);
405407
}
406408

407409
this._dirty = true;

0 commit comments

Comments
 (0)