mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Moved camera update from RimView to RimViewLinker
This commit is contained in:
@@ -483,9 +483,15 @@ void RiuViewer::updateNavigationPolicy()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuViewer::navigationPolicyUpdate()
|
||||
{
|
||||
update();
|
||||
|
||||
if (m_reservoirView)
|
||||
{
|
||||
m_reservoirView->notifyCameraHasChanged();
|
||||
RimViewLinker* viewLinker = RimViewLinker::viewLinkerForMainOrControlledView(m_reservoirView);
|
||||
if (viewLinker)
|
||||
{
|
||||
viewLinker->updateCamera(m_reservoirView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user