mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
(#266) Update grid box model in optimizeClippingPlanes
This commit is contained in:
parent
019c35540d
commit
2c1b960251
@ -271,8 +271,8 @@ void RimView::createDisplayModelAndRedraw()
|
|||||||
this->clampCurrentTimestep();
|
this->clampCurrentTimestep();
|
||||||
|
|
||||||
createDisplayModel();
|
createDisplayModel();
|
||||||
updateDisplayModelVisibility();
|
|
||||||
createOverlayDisplayModel();
|
createOverlayDisplayModel();
|
||||||
|
updateDisplayModelVisibility();
|
||||||
|
|
||||||
if (cameraPosition().isIdentity())
|
if (cameraPosition().isIdentity())
|
||||||
{
|
{
|
||||||
|
@ -502,8 +502,6 @@ void RiuViewer::navigationPolicyUpdate()
|
|||||||
{
|
{
|
||||||
viewLinker->updateCamera(m_rimView);
|
viewLinker->updateCamera(m_rimView);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_gridBoxGenerator->updateFromCamera(mainCamera());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,7 +585,8 @@ void RiuViewer::optimizeClippingPlanes()
|
|||||||
{
|
{
|
||||||
caf::Viewer::optimizeClippingPlanes();
|
caf::Viewer::optimizeClippingPlanes();
|
||||||
|
|
||||||
copyCameraView(m_mainCamera.p(), m_overlayRendering->camera());
|
m_gridBoxGenerator->updateFromCamera(mainCamera());
|
||||||
|
copyCameraView(mainCamera(), m_overlayRendering->camera());
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user