Skip to content

Commit

Permalink
Merge pull request #7806 from AnalyticalGraphicsInc/clipping-planes-fix
Browse files Browse the repository at this point in the history
Fixed clipping planes crash
  • Loading branch information
mramato authored May 1, 2019
2 parents 0ba4d9c + 0391ce1 commit 3a4d4e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Scene/GlobeSurfaceTileProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ define([
}

var clippingPlanes = this._clippingPlanes;
if (defined(clippingPlanes) && clippingPlanes.enabled) {
if (defined(clippingPlanes) && clippingPlanes.enabled && defined(boundingVolume)) {
var planeIntersection = clippingPlanes.computeIntersectionWithBoundingVolume(boundingVolume);
tile.isClipped = (planeIntersection !== Intersect.INSIDE);
if (planeIntersection === Intersect.OUTSIDE) {
Expand All @@ -645,8 +645,6 @@ define([
if (intersection === Intersect.OUTSIDE) {
return Visibility.NONE;
}
} else {
console.log('no bounding volume');
}

var ortho3D = frameState.mode === SceneMode.SCENE3D && frameState.camera.frustum instanceof OrthographicFrustum;
Expand Down

0 comments on commit 3a4d4e8

Please sign in to comment.