#4115 Avoid updating plots in RimEclipseCase::computeCachedData()

This commit is contained in:
Gaute Lindkvist 2019-02-20 11:40:22 +01:00
parent 2894002b05
commit 90b189f490
3 changed files with 12 additions and 3 deletions

View File

@ -536,11 +536,11 @@ void RimEclipseCase::computeCachedData()
pInf.setProgressDescription("Calculating Formation Names Result");
if (activeFormationNames())
{
rigEclipseCase->setActiveFormationNamesAndUpdatePlots(activeFormationNames()->formationNamesData());
rigEclipseCase->setActiveFormationNames(activeFormationNames()->formationNamesData());
}
else
{
rigEclipseCase->setActiveFormationNamesAndUpdatePlots(nullptr);
rigEclipseCase->setActiveFormationNames(nullptr);
}
pInf.incrementProgress();

View File

@ -670,12 +670,20 @@ void RigEclipseCaseData::computeActiveCellsGeometryBoundingBox()
m_mainGrid->setDisplayModelOffset(bb.min());
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigEclipseCaseData::setActiveFormationNames(RigFormationNames* activeFormationNames)
{
m_matrixModelResults->setActiveFormationNames(activeFormationNames);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigEclipseCaseData::setActiveFormationNamesAndUpdatePlots(RigFormationNames* activeFormationNames)
{
m_matrixModelResults->setActiveFormationNames(activeFormationNames);
setActiveFormationNames(activeFormationNames);
RimProject* project = RiaApplication::instance()->project();
if (project)

View File

@ -86,6 +86,7 @@ public:
bool hasFractureResults() const;
void setActiveFormationNames(RigFormationNames* activeFormationNames);
void setActiveFormationNamesAndUpdatePlots(RigFormationNames* activeFormationNames);
RigFormationNames* activeFormationNames();