diff --git a/CHANGES.md b/CHANGES.md index ec09cf6489a5..57cee6cb5f9e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,15 @@ Change Log ========== +### 1.13 - 2015-09-01 + +* Breaking changes + * +* Deprecated + * +* Fix issue where extruded `PolygonGeometry` was always extruding to the ellipsoid surface instead of specified height. + + ### 1.12 - 2015-08-03 * Breaking changes diff --git a/Source/Core/PolygonGeometry.js b/Source/Core/PolygonGeometry.js index 5132683b1813..3614b0fbb27a 100644 --- a/Source/Core/PolygonGeometry.js +++ b/Source/Core/PolygonGeometry.js @@ -619,8 +619,8 @@ define([ var perPositionHeight = defaultValue(options.perPositionHeight, false); var extrudedHeight = options.extrudedHeight; - var extrude = (defined(extrudedHeight) && (!CesiumMath.equalsEpsilon(height, extrudedHeight, CesiumMath.EPSILON6) || perPositionHeight)); - if (extrude) { + var extrude = defined(extrudedHeight); + if (extrude && !perPositionHeight) { var h = extrudedHeight; extrudedHeight = Math.min(h, height); height = Math.max(h, height); diff --git a/Source/Core/PolygonOutlineGeometry.js b/Source/Core/PolygonOutlineGeometry.js index 7ee6ebfcfedb..5b3792bd6612 100644 --- a/Source/Core/PolygonOutlineGeometry.js +++ b/Source/Core/PolygonOutlineGeometry.js @@ -296,8 +296,8 @@ define([ var perPositionHeight = defaultValue(options.perPositionHeight, false); var extrudedHeight = options.extrudedHeight; - var extrude = (defined(extrudedHeight) && (!CesiumMath.equalsEpsilon(height, extrudedHeight, CesiumMath.EPSILON6) || perPositionHeight)); - if (extrude) { + var extrude = defined(extrudedHeight); + if (extrude && !perPositionHeight) { var h = extrudedHeight; extrudedHeight = Math.min(h, height); height = Math.max(h, height);