#3636 Temporary LGR : Add required reload functions

This commit is contained in:
Magne Sjaastad 2018-11-06 11:15:36 +01:00
parent fcd9c78dcf
commit eaec135019
2 changed files with 8 additions and 1 deletions

View File

@ -160,8 +160,9 @@ void RicCreateTemporaryLgrFeature::onActionTriggered(bool isChecked)
if (eclipseView) if (eclipseView)
{ {
eclipseView->scheduleReservoirGridGeometryRegen(); eclipseView->scheduleReservoirGridGeometryRegen();
eclipseView->loadDataAndUpdate();
} }
v->loadDataAndUpdate();
} }
if (intersectingOtherLgr) if (intersectingOtherLgr)

View File

@ -37,6 +37,7 @@
#include "Rim2dEclipseView.h" #include "Rim2dEclipseView.h"
#include "Rim2dEclipseViewCollection.h" #include "Rim2dEclipseViewCollection.h"
#include "Rim2dIntersectionView.h"
#include "Rim2dIntersectionViewCollection.h" #include "Rim2dIntersectionViewCollection.h"
#include "RimCaseCollection.h" #include "RimCaseCollection.h"
#include "RimCellEdgeColors.h" #include "RimCellEdgeColors.h"
@ -999,6 +1000,11 @@ void RimEclipseCase::reloadDataAndUpdate()
contourMap->updateAnnotationItems(); contourMap->updateAnnotationItems();
} }
for (Rim2dIntersectionView* view : intersectionViewCollection()->views())
{
view->createDisplayModelAndRedraw();
}
RimProject* project = RiaApplication::instance()->project(); RimProject* project = RiaApplication::instance()->project();
if (project) if (project)
{ {