mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
parent
e337b6e4d1
commit
840ff020f8
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…
Add table
Reference in a new issue