Skip to content

Commit

Permalink
fixes CesiumGS#5477 only load visible children
Browse files Browse the repository at this point in the history
  • Loading branch information
jbo023 committed Aug 28, 2017
1 parent b0340f9 commit 982b50e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Scene/Cesium3DTilesetTraversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,10 @@ define([

function loadTile(tileset, tile, frameState) {
if ((tile.contentUnloaded || tile.contentExpired) && tile._requestedFrame !== frameState.frameNumber) {
tile._requestedFrame = frameState.frameNumber;
tileset._requestedTiles.push(tile);
if (isVisible(tile._visibilityPlaneMask)) {
tile._requestedFrame = frameState.frameNumber;
tileset._requestedTiles.push(tile);
}
}
}

Expand Down

0 comments on commit 982b50e

Please sign in to comment.