Fixed anchor issue with Sprite.body.

This commit is contained in:
photonstorm
2014-02-14 18:06:00 +00:00
parent 291f8ef14c
commit 1097a699c3
3 changed files with 12 additions and 16 deletions
+5 -2
View File
@@ -123,9 +123,12 @@ Phaser.Stage.prototype.postUpdate = function () {
var i = this.children.length;
while(i-- && this.children[i] !== this.game.world.camera.target)
while(i--)
{
this.children[i].postUpdate();
if (this.children[i] !== this.game.world.camera.target)
{
this.children[i].postUpdate();
}
}
}
else