Skip to content

Commit

Permalink
Removed the checks for empty leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
weegeekps committed Feb 21, 2024
1 parent af4c693 commit b4615ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/engine/Source/Scene/Cesium3DTilesetBaseTraversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,10 @@ function executeEmptyTraversal(root, frameState) {

// Only traverse if the tile is empty - traversal stops at descendants with content
const traverse = !tile.hasRenderableContent && canTraverse(tile);
const emptyLeaf = !tile.hasRenderableContent && tile.children.length === 0;

// Traversal stops but the tile does not have content yet
// There will be holes if the parent tries to refine to its children, so don't refine
// One exception: a parent may refine even if one of its descendants is an empty leaf
if (!traverse && !tile.contentAvailable && !emptyLeaf) {
if (!traverse && !tile.contentAvailable) {
allDescendantsLoaded = false;
}

Expand Down

0 comments on commit b4615ec

Please sign in to comment.