mirror of
https://github.com/wassname/phaser.git
synced 2026-08-17 11:23:42 +08:00
Fixed anchor issue with Sprite.body.
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user