From 1cdbffb2c7522ed06a2b48a04b45693a3817b23d Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 20 Dec 2024 16:00:46 +0100 Subject: [PATCH] Make sure cached data is computed Without this, the bounding box of the case is undefined, causing the polygons lines not to be visible. --- .../ProjectDataModel/RimRegularGridCase.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp b/ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp index 18508dbba8..b7d2cc964d 100644 --- a/ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp @@ -82,6 +82,7 @@ cvf::ref RimRegularGridCase::createModel( QString modelName reader->open( "", reservoir.p() ); setReservoirData( reservoir.p() ); + computeCachedData(); return reader.p(); } @@ -93,12 +94,7 @@ bool RimRegularGridCase::openEclipseGridFile() { if ( eclipseCaseData() ) return true; - auto readerInterface = createModel( "" ); - - results( RiaDefines::PorosityModelType::MATRIX_MODEL )->setReaderInterface( readerInterface.p() ); - results( RiaDefines::PorosityModelType::FRACTURE_MODEL )->setReaderInterface( readerInterface.p() ); - - computeCachedData(); + createModel( "" ); return true; }