Skip to content

Commit

Permalink
Cesium: remove now-useless code that prevented camera from going unde…
Browse files Browse the repository at this point in the history
…rground

This was fixed in CesiumGS/cesium#8504
  • Loading branch information
Williangalvani committed Dec 2, 2020
1 parent 309d027 commit 938599d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/components/CesiumViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
PointPrimitiveCollection,
IonImageryProvider,
Entity,
SceneMode,
ScreenSpaceEventHandler,
ScreenSpaceEventType,
knockout,
Expand Down Expand Up @@ -131,15 +130,6 @@ export default {
this.viewer.shadowMap.softShadows = true
this.viewer.shadowMap.size = 4096
this.viewer.camera.changed.addEventListener(
() => {
if (this.viewer.camera._suspendTerrainAdjustment && this.viewer.scene.mode === SceneMode.SCENE3D) {
this.viewer.camera._suspendTerrainAdjustment = false
this.viewer.camera._adjustHeightForTerrain()
}
}
)
// Attach hover handler
let handler = new ScreenSpaceEventHandler(this.viewer.scene.canvas)
handler.setInputAction(this.onMove, ScreenSpaceEventType.MOUSE_MOVE)
Expand Down

0 comments on commit 938599d

Please sign in to comment.