Skip to content

Commit 3a4d4e8

Browse files
authored
Merge pull request #7806 from AnalyticalGraphicsInc/clipping-planes-fix
Fixed clipping planes crash
2 parents 0ba4d9c + 0391ce1 commit 3a4d4e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Source/Scene/GlobeSurfaceTileProvider.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ define([
631631
}
632632

633633
var clippingPlanes = this._clippingPlanes;
634-
if (defined(clippingPlanes) && clippingPlanes.enabled) {
634+
if (defined(clippingPlanes) && clippingPlanes.enabled && defined(boundingVolume)) {
635635
var planeIntersection = clippingPlanes.computeIntersectionWithBoundingVolume(boundingVolume);
636636
tile.isClipped = (planeIntersection !== Intersect.INSIDE);
637637
if (planeIntersection === Intersect.OUTSIDE) {
@@ -645,8 +645,6 @@ define([
645645
if (intersection === Intersect.OUTSIDE) {
646646
return Visibility.NONE;
647647
}
648-
} else {
649-
console.log('no bounding volume');
650648
}
651649

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

0 commit comments

Comments
 (0)