Make sure cached data is computed

Without this, the bounding box of the case is undefined, causing the polygons lines not to be visible.
This commit is contained in:
Magne Sjaastad 2024-12-20 16:00:46 +01:00 committed by Kristian Bendiksen
parent 1d552ea77d
commit 1cdbffb2c7

View File

@ -82,6 +82,7 @@ cvf::ref<RifReaderInterface> 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;
}