File tree Expand file tree Collapse file tree
src/gameobjects/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ var Pipeline = {
341341 } ,
342342
343343 /**
344- * Removes a single Post Pipeline instance from this Game Object, based on the given name, and destroys it .
344+ * Removes a type of Post Pipeline instances from this Game Object, based on the given name, and destroys them .
345345 *
346346 * If you wish to remove all Post Pipelines use the `resetPostPipeline` method instead.
347347 *
@@ -357,7 +357,7 @@ var Pipeline = {
357357 {
358358 var pipelines = this . postPipelines ;
359359
360- for ( var i = 0 ; i < pipelines . length ; i ++ )
360+ for ( var i = pipelines . length - 1 ; i >= 0 ; i -- )
361361 {
362362 var instance = pipelines [ i ] ;
363363
@@ -368,11 +368,11 @@ var Pipeline = {
368368 instance . destroy ( ) ;
369369
370370 SpliceOne ( pipelines , i ) ;
371-
372- return this ;
373371 }
374372 }
375373
374+ this . hasPostPipeline = ( this . postPipelines . length > 0 ) ;
375+
376376 return this ;
377377 } ,
378378
You can’t perform that action at this time.
0 commit comments