mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Use Scene Display List if not available
This commit is contained in:
parent
c6ad8b1306
commit
3db77c7a10
1 changed files with 8 additions and 1 deletions
|
@ -653,7 +653,14 @@ var GameObject = new Class({
|
|||
}
|
||||
}
|
||||
|
||||
indexes.unshift(this.displayList.getIndex(child));
|
||||
if (this.displayList)
|
||||
{
|
||||
indexes.unshift(this.displayList.getIndex(child));
|
||||
}
|
||||
else
|
||||
{
|
||||
indexes.unshift(this.scene.sys.displayList.getIndex(child));
|
||||
}
|
||||
|
||||
return indexes;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue