Skip to content

Commit

Permalink
Merge pull request cedricpinson#986 from cedricpinson/bug/pre-post-re…
Browse files Browse the repository at this point in the history
…nder-list-erasure_4491

Fixes render list being erased in RenderStage
  • Loading branch information
cedricpinson authored Jul 23, 2018
2 parents 02a0ae2 + 7a08072 commit 8d3bc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/osg/RenderStage.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ utils.createPrototypeObject(
renderStageOrder.order = order;
renderStageOrder.renderStage = rs;
if (i < this._preRenderList.length) {
this._preRenderList = this._preRenderList.splice(i, 0, renderStageOrder);
this._preRenderList.splice(i, 0, renderStageOrder);
} else {
this._preRenderList.push(renderStageOrder);
}
Expand All @@ -155,7 +155,7 @@ utils.createPrototypeObject(
renderStageOrder.order = order;
renderStageOrder.renderStage = rs;
if (i < this._postRenderList.length) {
this._postRenderList = this._postRenderList.splice(i, 0, renderStageOrder);
this._postRenderList.splice(i, 0, renderStageOrder);
} else {
this._postRenderList.push(renderStageOrder);
}
Expand Down

0 comments on commit 8d3bc61

Please sign in to comment.