Skip to content

Commit

Permalink
Fix a bug that could stop tile loading too soon.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Feb 12, 2013
1 parent e10853a commit 1d99511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Scene/CentralBodySurface.js
Expand Up @@ -772,6 +772,8 @@ define([
isDoneLoading = isDoneLoading && imageryDoneLoading;
}

var next = tile.loadNext;

// The tile becomes renderable when the terrain and all imagery data are loaded.
if (i === len && isRenderable) {
tile.isRenderable = true;
Expand All @@ -782,7 +784,7 @@ define([
}
}

tile = tile.loadNext;
tile = next;
} while (Date.now() < endTime && typeof tile !== 'undefined');
}

Expand Down

0 comments on commit 1d99511

Please sign in to comment.