Moved camera update from RimView to RimViewLinker

This commit is contained in:
Magne Sjaastad
2015-09-23 12:23:21 +02:00
parent c8944d8801
commit 942c0a20b7
6 changed files with 154 additions and 146 deletions

View File

@@ -177,16 +177,15 @@ void RimViewLink::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
if (m_managedView)
{
RimViewLinker* linkedViews = NULL;
this->firstAnchestorOrThisOfType(linkedViews);
RimViewLinker* viewLinker = ownerViewLinker();
if (syncCellResult())
{
linkedViews->updateCellResult();
viewLinker->updateCellResult();
}
if (syncCamera())
{
m_managedView->notifyCameraHasChanged();
viewLinker->updateCamera(m_managedView);
}
name = RimViewLinker::displayNameForView(m_managedView);