mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
(#266) Cleaned up access to boundingBox
This commit is contained in:
parent
bca5720968
commit
121ee80295
@ -507,6 +507,8 @@ void RiuViewer::navigationPolicyUpdate()
|
||||
{
|
||||
viewLinker->updateCamera(m_rimView);
|
||||
}
|
||||
|
||||
m_gridBoxGenerator->updateFromCamera(mainCamera());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user