Skip to content

Commit

Permalink
Merge pull request #6914 from AnalyticalGraphicsInc/tileset-boundings…
Browse files Browse the repository at this point in the history
…phere

Update tileset transform on get bounding sphere
  • Loading branch information
lilleyse authored Aug 13, 2018
2 parents 58b7c7a + 646bd45 commit 021405f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Source/Scene/Cesium3DTileset.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ define([
}
//>>includeEnd('debug');

this._root.updateTransform(this._modelMatrix);
return this._root.boundingSphere;
}
},
Expand Down Expand Up @@ -1123,11 +1124,6 @@ define([
},
set : function(value) {
this._modelMatrix = Matrix4.clone(value, this._modelMatrix);
if (defined(this._root)) {
// Update the root transform right away instead of waiting for the next update loop.
// Useful, for example, when setting the modelMatrix and then having the camera view the tileset.
this._root.updateTransform(this._modelMatrix);
}
}
},

Expand Down

0 comments on commit 021405f

Please sign in to comment.