mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
The InputPlugin.sortGameObjects
method was using the Camera Render List to determine the Game Object display list. This would exclude non-rendering objects, such as Game Objects with alpha set to zero, even if their Input alwaysEnable
flag was set. This method now uses the Display List instead, which gives correct results for invisible 'always enabled' objects. Fix #5507
This commit is contained in:
parent
154e262ae8
commit
436a42cfb4
2 changed files with 6 additions and 1 deletions
|
@ -848,6 +848,11 @@ var InputManager = new Class({
|
|||
return false;
|
||||
}
|
||||
|
||||
if (input.alwaysEnabled)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
var visible = true;
|
||||
var parent = gameObject.parentContainer;
|
||||
|
||||
|
|
|
@ -2670,7 +2670,7 @@ var InputPlugin = new Class({
|
|||
return gameObjects;
|
||||
}
|
||||
|
||||
var list = pointer.camera.renderList;
|
||||
var list = this.displayList.list;
|
||||
|
||||
return gameObjects.sort(function (childA, childB)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue