Skip to content

Commit

Permalink
update transform on get bounding sphere
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Aug 13, 2018
1 parent 58b7c7a commit 646bd45
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 646bd45

Please sign in to comment.