Skip to content

Commit 0658820

Browse files
committed
Clear post pipelines
1 parent 26a1d01 commit 0658820

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,16 @@ var GameObject = new Class({
705705
this.body = undefined;
706706
}
707707

708+
if (this.hasPostPipeline)
709+
{
710+
var pipelines = this.postPipelines;
711+
712+
for (var i = 0; i < pipelines.length; i++)
713+
{
714+
pipelines[i].destroy();
715+
}
716+
}
717+
708718
// Tell the Scene to re-sort the children
709719
if (!fromScene)
710720
{

0 commit comments

Comments
 (0)