diff --git a/CHANGES.md b/CHANGES.md index 6a04cd71c154..594ad6939969 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ Change Log * Added ability to add an animation to `ModelAnimationCollection` by its index. [#5815](https://github.com/AnalyticalGraphicsInc/cesium/pull/5815) * Fixed a bug in `ModelAnimationCollection` that caused adding an animation by its name to throw an error. [#5815](https://github.com/AnalyticalGraphicsInc/cesium/pull/5815) * Zoom about mouse now maintains camera heading, pitch, and roll [#4639](https://github.com/AnalyticalGraphicsInc/cesium/pull/5603) +* Fixed a bug in `PolylineCollection` preventing the display of more than 16K points in a single collection [#5538](https://github.com/AnalyticalGraphicsInc/cesium/pull/5782) ### 1.37 - 2017-09-01 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 66b0f0a0c4fa..e491f576de72 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -90,6 +90,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu * [William Wall](https://github.com/wallw-bits) * [virtualcitySYSTEMS GmbH](https://www.virtualcitysystems.de) * [Jannes Bolling](https://github.com/jbo023) +* [Logilab](https://www.logilab.fr/) + * [Florent Cayré](https://github.com/fcayre/) ## [Individual CLA](Documentation/Contributors/CLAs/individual-cla-agi-v1.0.txt) * [Victor Berchet](https://github.com/vicb) @@ -156,4 +158,5 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu * [Rishabh Shah](https://github.com/rms13) * [Rudraksha Shah](https://github.com/Rudraksha20) * [Cody Guldner](https://github.com/burn123) +* [Florent Cayré](https://github.com/fcayre) diff --git a/Source/Scene/PolylineCollection.js b/Source/Scene/PolylineCollection.js index c35652348eba..c8149202879a 100644 --- a/Source/Scene/PolylineCollection.js +++ b/Source/Scene/PolylineCollection.js @@ -1457,7 +1457,7 @@ define([ for ( var j = 0; j < numberOfSegments; ++j) { var segmentLength = segments[j] - 1.0; for ( var k = 0; k < segmentLength; ++k) { - if (indicesCount + 4 >= CesiumMath.SIXTY_FOUR_KILOBYTES - 2) { + if (indicesCount + 4 > CesiumMath.SIXTY_FOUR_KILOBYTES) { polyline._locatorBuckets.push({ locator : bucketLocator, count : segmentIndexCount @@ -1489,7 +1489,7 @@ define([ count : segmentIndexCount }); - if (indicesCount + 4 >= CesiumMath.SIXTY_FOUR_KILOBYTES - 2) { + if (indicesCount + 4 > CesiumMath.SIXTY_FOUR_KILOBYTES) { vertexBufferOffset.push(0); indices = []; totalIndices.push(indices);