Skip to content

Commit

Permalink
Merge pull request #14 from sensat/fix-replace-tiles-with-no-children…
Browse files Browse the repository at this point in the history
…-not-loading

DV: Fix replace tiles with no children not loading
  • Loading branch information
Kaapp authored Sep 4, 2024
2 parents afba371 + 7b97823 commit d7e1179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tiles/src/tileset/tileset-traverser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export class TilesetTraverser {
return;
}

if (tile.refine !== TILE_REFINEMENT.REPLACE) {
// don't set the tile for REPLACE tiles as that should be handled above.
if (tile.refine !== TILE_REFINEMENT.REPLACE || !tile.children.length) {
// don't set the tile for REPLACE tiles that have children 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 d7e1179

Please sign in to comment.