(#266) Cleaned up access to boundingBox

This commit is contained in:
Magne Sjaastad 2015-11-16 08:06:25 +01:00
parent bca5720968
commit 121ee80295
2 changed files with 3 additions and 8 deletions

View File

@ -507,6 +507,8 @@ void RiuViewer::navigationPolicyUpdate()
{
viewLinker->updateCamera(m_rimView);
}
m_gridBoxGenerator->updateFromCamera(mainCamera());
}
}

View File

@ -528,14 +528,7 @@ void caf::Viewer::setView(const cvf::Vec3d& alongDirection, const cvf::Vec3d& up
//--------------------------------------------------------------------------------------------------
void caf::Viewer::zoomAll()
{
cvf::BoundingBox bb;
cvf::Scene* scene = m_renderingSequence->firstRendering()->scene();
if (scene)
{
bb = scene->boundingBox();
}
cvf::BoundingBox bb = m_renderingSequence->boundingBox();
if (!bb.isValid())
{
return;