Skip to content

Commit

Permalink
Merge pull request NASAWorldWind#22 from ESAFastPrototyping/feature/c…
Browse files Browse the repository at this point in the history
…ollada

Setting enabled to false will no longer render the model
  • Loading branch information
pdavidc committed Mar 29, 2016
2 parents 53b23a9 + 3a1841e commit 86d86a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/formats/collada/ColladaScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ define([

var orderedScene;

if (!this.enabled) {
return;
}

if (this.lastFrameTime !== dc.timestamp) {
orderedScene = this.makeOrderedRenderable(dc);
}
Expand Down

0 comments on commit 86d86a3

Please sign in to comment.