Skip to content

Commit eee96cd

Browse files
committed
setPipeline returns the Game Object, not the pipeline, to be consistent.
1 parent 4843d7e commit eee96cd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/gameobjects/components/Pipeline.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var Pipeline = {
7272
*
7373
* @param {string} pipelineName - The name of the pipeline to set on this Game Object.
7474
*
75-
* @return {boolean} `true` if the pipeline was set successfully, otherwise `false`.
75+
* @return {this} This Game Object instance.
7676
*/
7777
setPipeline: function (pipelineName)
7878
{
@@ -81,11 +81,9 @@ var Pipeline = {
8181
if (renderer && renderer.gl && renderer.hasPipeline(pipelineName))
8282
{
8383
this.pipeline = renderer.getPipeline(pipelineName);
84-
85-
return true;
8684
}
8785

88-
return false;
86+
return this;
8987
},
9088

9189
/**

0 commit comments

Comments
 (0)