Skip to content

Commit

Permalink
Fixes #5607
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Jul 14, 2017
1 parent 7498a24 commit bdf1860
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Change Log
* Added ability to show tile urls in the 3D Tiles Inspector. [#5592](https://github.com/AnalyticalGraphicsInc/cesium/pull/5592)
* Added behavior to `Cesium3DTilesInspector` that selects the first tileset hovered over if no tilest is specified. [#5139](https://github.com/AnalyticalGraphicsInc/cesium/issues/5139)
* Added ability to provide a `width` and `height` to `scene.pick`. [#5602](https://github.com/AnalyticalGraphicsInc/cesium/pull/5602)
* Fixed crash when using the `Cesium3DTilesInspectorViewModel` and removing a tileset [#5607](https://github.com/AnalyticalGraphicsInc/cesium/issues/5607)

### 1.35.2 - 2017-07-11

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ define([
return;
}
var currentFeature = this._feature;
if (defined(currentFeature)) {
if (defined(currentFeature) && !currentFeature.content.isDestroyed()) {
// Restore original color to feature that is no longer selected
var frameState = this._scene.frameState;
if (!this.colorize && defined(this._style)) {
Expand Down Expand Up @@ -1043,7 +1043,7 @@ define([
}
var currentTile = this._tile;

if (defined(currentTile) && !hasFeatures(currentTile.content)) {
if (defined(currentTile) && !currentTile.isDestroyed() && !hasFeatures(currentTile.content)) {
// Restore original color to tile that is no longer selected
currentTile.color = oldColor;
}
Expand Down Expand Up @@ -1225,6 +1225,13 @@ define([
}

if (defined(tileset)) {
if (tileset.isDestroyed()) {
this.tile = undefined;
this.feature = undefined;
this.tileset = undefined;
return;
}

var style = tileset.style;
if (this._style !== tileset.style) {
if (this._shouldStyle) {
Expand Down

0 comments on commit bdf1860

Please sign in to comment.