Skip to content

Commit

Permalink
Merge pull request #13 from sensat/fix-higher-lod-replace-tiles-never…
Browse files Browse the repository at this point in the history
…-loaded

DV: Fix REPLACE tiles never being selected in some cases
  • Loading branch information
Kaapp authored Sep 4, 2024
2 parents 2edd18b + 10fa926 commit afba371
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/tiles/src/tileset/tileset-traverser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,13 @@ export class TilesetTraverser {
selected.addTile(tile);
return;
}
this.selectedTileGroups[tile.id] = tile;

if (tile.refine !== TILE_REFINEMENT.REPLACE) {
// don't set the tile for REPLACE tiles as that should be handled above.
// if we do, we'll never select the refined tiles as we'll have put a tile
// instead of a TileGroup3D in the selectedTileGroups at that tile id.
this.selectedTileGroups[tile.id] = tile;
}
}
}

Expand Down

0 comments on commit afba371

Please sign in to comment.