(#266) Update grid box model in optimizeClippingPlanes

This commit is contained in:
Magne Sjaastad 2015-11-16 12:08:53 +01:00
parent 019c35540d
commit 2c1b960251
2 changed files with 3 additions and 4 deletions

View File

@ -271,8 +271,8 @@ void RimView::createDisplayModelAndRedraw()
this->clampCurrentTimestep();
createDisplayModel();
updateDisplayModelVisibility();
createOverlayDisplayModel();
updateDisplayModelVisibility();
if (cameraPosition().isIdentity())
{

View File

@ -502,8 +502,6 @@ void RiuViewer::navigationPolicyUpdate()
{
viewLinker->updateCamera(m_rimView);
}
m_gridBoxGenerator->updateFromCamera(mainCamera());
}
}
@ -587,7 +585,8 @@ void RiuViewer::optimizeClippingPlanes()
{
caf::Viewer::optimizeClippingPlanes();
copyCameraView(m_mainCamera.p(), m_overlayRendering->camera());
m_gridBoxGenerator->updateFromCamera(mainCamera());
copyCameraView(mainCamera(), m_overlayRendering->camera());
}
//--------------------------------------------------------------------------------------------------