diff --git a/CHANGES.md b/CHANGES.md index 6675fbb90df1..b006a8406260 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ Change Log ##### Fixes :wrench: * Fixed a bug causing custom TilingScheme classes to not be able to use a GeographicProjection. [#6524](https://github.com/AnalyticalGraphicsInc/cesium/pull/6524) +* Fixed race condition causing intermittent crash when changing geometry show value [#3061](https://github.com/AnalyticalGraphicsInc/cesium/issues/3061) * `ProviderViewModel`s with no category are displayed in an untitled group in `BaseLayerPicker` instead of being labeled as `'Other'` [#6574](https://github.com/AnalyticalGraphicsInc/cesium/pull/6574) ### 1.45 - 2018-05-01 diff --git a/Source/DataSources/StaticGeometryColorBatch.js b/Source/DataSources/StaticGeometryColorBatch.js index 520a5683bfee..32168a30c123 100644 --- a/Source/DataSources/StaticGeometryColorBatch.js +++ b/Source/DataSources/StaticGeometryColorBatch.js @@ -101,6 +101,7 @@ define([ if (defined(unsubscribe)) { unsubscribe(); this.subscriptions.remove(id); + this.showsUpdated.remove(id); } } }; diff --git a/Source/DataSources/StaticGeometryPerMaterialBatch.js b/Source/DataSources/StaticGeometryPerMaterialBatch.js index a8a03ef3a35f..4734c5be14fd 100644 --- a/Source/DataSources/StaticGeometryPerMaterialBatch.js +++ b/Source/DataSources/StaticGeometryPerMaterialBatch.js @@ -96,6 +96,7 @@ define([ if (defined(unsubscribe)) { unsubscribe(); this.subscriptions.remove(id); + this.showsUpdated.remove(id); } } return this.createPrimitive; diff --git a/Source/DataSources/StaticGroundGeometryColorBatch.js b/Source/DataSources/StaticGroundGeometryColorBatch.js index 9dcfc20bfde6..c6760879c717 100644 --- a/Source/DataSources/StaticGroundGeometryColorBatch.js +++ b/Source/DataSources/StaticGroundGeometryColorBatch.js @@ -69,6 +69,7 @@ define([ if (defined(unsubscribe)) { unsubscribe(); this.subscriptions.remove(id); + this.showsUpdated.remove(id); } } }; diff --git a/Source/DataSources/StaticOutlineGeometryBatch.js b/Source/DataSources/StaticOutlineGeometryBatch.js index 1d051cb66800..848154fa3c51 100644 --- a/Source/DataSources/StaticOutlineGeometryBatch.js +++ b/Source/DataSources/StaticOutlineGeometryBatch.js @@ -71,6 +71,7 @@ define([ if (defined(unsubscribe)) { unsubscribe(); this.subscriptions.remove(id); + this.showsUpdated.remove(id); } } };