Skip to content

Commit

Permalink
Remove tilesetContent flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jan 21, 2016
1 parent 321cf9b commit 3587e31
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
8 changes: 0 additions & 8 deletions Source/Scene/Cesium3DTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@ define([

this.hasContent = true;

/**
* DOC_TBA
*
* @readonly
*/
this.hasTilesetContent = false;

/**
* DOC_TBA
*
Expand All @@ -162,7 +155,6 @@ define([
var contentFactory = Cesium3DTileContentProviderFactory[type];

if (type === 'json') {
this.hasTilesetContent = true;
this.hasContent = false;
this._numberOfUnrefinableChildren = 1;
}
Expand Down
17 changes: 0 additions & 17 deletions Source/Scene/Cesium3DTileset.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,23 +427,6 @@ define([
var k;
var additiveRefinement = (t.refine === Cesium3DTileRefine.ADD);

if (t.hasTilesetContent) {
// If tile has tileset content, skip it and process its child instead (the tileset root)
// No need to check visibility or sse of the child because its bounding volume
// and geometric error are equal to its parent.
if (t.isReady()) {
child = t.children[0];
child.parentPlaneMask = t.parentPlaneMask;
child.distanceToCamera = t.distanceToCamera;
child.refining = t.refining;
if (child.isContentUnloaded()) {
requestContent(tiles3D, child, outOfCore);
} else {
stack.push(child);
}
}
continue;
}
if (additiveRefinement) {
// With additive refinement, the tile is rendered
// regardless of if its SSE is sufficient.
Expand Down
2 changes: 0 additions & 2 deletions Specs/Scene/Cesium3DTilesetSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ defineSuite([
return Cesium3DTilesTester.loadTileset(scene, tilesetOfTilesetsUrl).then(function(tileset) {
// Root points to an external tileset.json and has no children until it is requested
var root = tileset._root;
expect(root.hasTilesetContent).toEqual(true);
expect(root.children.length).toEqual(0);

// Set view so that root's content is requested
Expand All @@ -604,7 +603,6 @@ defineSuite([
expect(root.contentBoundingVolume.boundingVolume).toEqual(subtreeRoot.contentBoundingVolume.boundingVolume);

// Check that Subtree root has 4 children
expect(subtreeRoot.hasTilesetContent).toEqual(false);
expect(subtreeRoot.children.length).toEqual(4);
});
});
Expand Down

0 comments on commit 3587e31

Please sign in to comment.