diff --git a/CHANGES.md b/CHANGES.md index 08561967ef1d..89120e99d636 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -109,6 +109,7 @@ Beta Releases * Added the ability for imagery providers to specify view-dependent attribution to be display in the `CreditDisplay`. * View-dependent imagery source attribution is now added to the `CreditDisplay` by the `BingMapsImageryProvider`. * Fixed viewing an extent. [#1431](https://github.com/AnalyticalGraphicsInc/cesium/issues/1431) +* Fixed camera tilt in ICRF. [#544](https://github.com/AnalyticalGraphicsInc/cesium/issues/544) * Fixed developer error when zooming in 2D. If the zoom would create an invalid frustum, nothing is done. [#1432](https://github.com/AnalyticalGraphicsInc/cesium/issues/1432) * Fixed `WallGeometry` bug that failed by removing positions that were less close together by less than 6 decimal places. [#1483](https://github.com/AnalyticalGraphicsInc/cesium/pull/1483) * Fixed `EllipsoidGeometry` texture coordinates. [#1454](https://github.com/AnalyticalGraphicsInc/cesium/issues/1454) diff --git a/Source/Scene/ScreenSpaceCameraController.js b/Source/Scene/ScreenSpaceCameraController.js index c3e73220cd36..9ef4ae28da56 100644 --- a/Source/Scene/ScreenSpaceCameraController.js +++ b/Source/Scene/ScreenSpaceCameraController.js @@ -871,7 +871,7 @@ define([ var ellipsoid = controller._ellipsoid; var minHeight = controller.minimumZoomDistance * 0.25; - var height = ellipsoid.cartesianToCartographic(controller._cameraController._camera.position).height; + var height = ellipsoid.cartesianToCartographic(controller._cameraController._camera.positionWC).height; if (height - minHeight - 1.0 < CesiumMath.EPSILON3 && movement.endPosition.y - movement.startPosition.y < 0) { return; @@ -898,7 +898,6 @@ define([ // CAMERA TODO: Remove the need for camera access var camera = cameraController._camera; - center = camera.worldToCameraCoordinates(center, center); var transform = Transforms.eastNorthUpToFixedFrame(center, ellipsoid, tilt3DTransform); var oldEllipsoid = controller._ellipsoid;