mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Merge pull request #6801 from samme/fix/getPipelineName-null
`getPipelineName()` is null if pipeline is null
This commit is contained in:
commit
d18f42377b
1 changed files with 2 additions and 2 deletions
|
@ -205,11 +205,11 @@ var Pipeline = {
|
|||
* @webglOnly
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return {string} The string-based name of the pipeline being used by this Game Object.
|
||||
* @return {?string} The string-based name of the pipeline being used by this Game Object, or null.
|
||||
*/
|
||||
getPipelineName: function ()
|
||||
{
|
||||
return this.pipeline.name;
|
||||
return (this.pipeline === null) ? null : this.pipeline.name;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue