Fixed issue where Image, Sprite, etc wouldn't call preUpdate or postUpdate of its children.

Fixed issue where renderOrderID wasn't being assigned correctly, causing the Input Handler to be unable to select the "top" item on a display list (would all default to zero)
Fixed issue where Stage would assign renderOrderIDs in reverse, should be in sequence.
Fixed issue where objects where checking World for the currentRenderOrderID by mistake instead of Stage.
Basically, input handling works a lot better now for Groups and nested objects :)
This commit is contained in:
photonstorm
2014-02-28 19:45:15 +00:00
parent 8dcfef8db0
commit 664d5b3e2c
14 changed files with 226 additions and 76 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ Phaser.BitmapText.prototype.preUpdate = function () {
if (this.visible)
{
this._cache[3] = this.game.world.currentRenderOrderID++;
this._cache[3] = this.game.stage.currentRenderOrderID++;
}
return true;