Now result colors are correct at first selection

This commit is contained in:
Jacob Støren
2015-05-08 15:16:29 +02:00
parent d6643d9d35
commit a05c186d34
2 changed files with 6 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ void RigGeoMechCaseData::minMaxScalarValuesInternal(const RigFemResultAddress& r
{
if (m_femPartResults[pIdx].notNull())
{
RigFemScalarResultFrames* frames = m_femPartResults[pIdx]->findScalarResult(stepIndex, resVarAddr);
RigFemScalarResultFrames* frames = findOrLoadScalarResult(pIdx, stepIndex, resVarAddr);
if (frames)
{
double lmin;
@@ -248,7 +248,7 @@ void RigGeoMechCaseData::posNegClosestToZeroInternal(const RigFemResultAddress&
{
if (m_femPartResults[pIdx].notNull())
{
RigFemScalarResultFrames* frames = m_femPartResults[pIdx]->findScalarResult(stepIndex, resVarAddr);
RigFemScalarResultFrames* frames = findOrLoadScalarResult(pIdx, stepIndex, resVarAddr);
if (frames)
{
double partNeg, partPos;

View File

@@ -239,6 +239,7 @@ void RimGeoMechView::createDisplayModel()
//--------------------------------------------------------------------------------------------------
void RimGeoMechView::updateCurrentTimeStep()
{
updateLegends();
if ((this->animationMode() && cellResult()->resultFieldName() != ""))
{
m_geoMechVizModel->updateCellResultColor(m_currentTimeStep(), this->cellResult());
@@ -247,6 +248,9 @@ void RimGeoMechView::updateCurrentTimeStep()
{
this->updateStaticCellColors();
}
overlayInfoConfig()->update3DInfo();
}
//--------------------------------------------------------------------------------------------------