#5119, #5120 Default case for intersection result

Fixed missing intersection colors when cellresults are turned off
This commit is contained in:
Jacob Støren
2019-11-29 09:29:17 +01:00
parent fa72835dd8
commit 021af085a7
10 changed files with 87 additions and 40 deletions

View File

@@ -383,19 +383,13 @@ void RimGeoMechView::onUpdateDisplayModelForCurrentTimeStep()
else
m_vizLogic->updateStaticCellColors( m_currentTimeStep() );
if ( this->cellResult()->hasResult() )
{
m_intersectionCollection->updateCellResultColor( m_currentTimeStep );
}
else
{
m_intersectionCollection->applySingleColorEffect();
}
m_intersectionCollection->updateCellResultColor( this->cellResult()->hasResult(), m_currentTimeStep );
}
else
{
m_vizLogic->updateStaticCellColors( -1 );
m_intersectionCollection->applySingleColorEffect();
m_intersectionCollection->updateCellResultColor( false, m_currentTimeStep );
nativeOrOverrideViewer()->animationControl()->slotPause(); // To avoid animation timer spinning in the background
}