Fixed the bounding sphere computation and handling of Drawable as the root of the scene graph

This commit is contained in:
Robert Osfield
2014-05-14 16:52:18 +00:00
parent 74f91037a7
commit afcf54b108
2 changed files with 3 additions and 4 deletions

View File

@@ -157,6 +157,8 @@ class OSG_EXPORT Drawable : public Node
_boundingSphereComputed = true;
}
_boundingSphere.set(_boundingBox.center(), _boundingBox.radius());
return _boundingBox;
}