Merge pull request #6197 from samme/fix/getTextureKeys-white

Exclude __WHITE in getTextureKeys()
This commit is contained in:
Richard Davey 2022-08-24 21:16:15 +01:00 committed by GitHub
commit 5c4f4a3450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1038,7 +1038,7 @@ var TextureManager = new Class({
/**
* Returns an array with all of the keys of all Textures in this Texture Manager.
* The output array will exclude the `__DEFAULT` and `__MISSING` keys.
* The output array will exclude the `__DEFAULT`, `__MISSING`, and `__WHITE` keys.
*
* @method Phaser.Textures.TextureManager#getTextureKeys
* @since 3.0.0
@ -1051,7 +1051,7 @@ var TextureManager = new Class({
for (var key in this.list)
{
if (key !== '__DEFAULT' && key !== '__MISSING')
if (key !== '__DEFAULT' && key !== '__MISSING' && key !== '__WHITE')
{
output.push(key);
}