#5852 3D view: Avoid more work than required

This commit is contained in:
Magne Sjaastad 2020-04-30 08:18:18 +02:00
parent 1630c5651e
commit 58d8b0b753

View File

@ -505,8 +505,8 @@ void RimSimWellInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
setDefaultSourceCaseForWellDisks();
}
if ( &isActive == changedField || &m_showWellLabel == changedField || &m_showWellCells == changedField ||
&m_showWellCellFence == changedField || &wellCellFenceType == changedField )
if ( &isActive == changedField || &m_showWellCells == changedField || &m_showWellCellFence == changedField ||
&wellCellFenceType == changedField || &showWellsIntersectingVisibleCells == changedField )
{
m_reservoirView->scheduleGeometryRegen( VISIBLE_WELL_CELLS );
m_reservoirView->scheduleCreateDisplayModelAndRedraw();
@ -519,7 +519,7 @@ void RimSimWellInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
&m_wellDiskPropertyConfigType == changedField || &m_wellDiskshowLabelsBackground == changedField ||
&m_wellDiskShowQuantityLabels == changedField || &m_wellDiskSummaryCase == changedField ||
&m_wellDiskScaleFactor == changedField || &wellDiskColor == changedField ||
&m_showWellDisks == changedField )
&m_showWellDisks == changedField || &m_showWellLabel == changedField )
{
m_reservoirView->updateDisplayModelForCurrentTimeStepAndRedraw();
}
@ -540,12 +540,6 @@ void RimSimWellInViewCollection::fieldChangedByUi( const caf::PdmFieldHandle* ch
for ( RimSimWellInView* w : wells )
w->schedule2dIntersectionViewUpdate();
}
else if ( &showWellsIntersectingVisibleCells == changedField )
{
m_reservoirView->scheduleGeometryRegen( VISIBLE_WELL_CELLS );
m_reservoirView->scheduleSimWellGeometryRegen();
m_reservoirView->scheduleCreateDisplayModelAndRedraw();
}
}
if ( &m_wellPipeColors == changedField || &m_defaultWellPipeColor == changedField )