diff --git a/ApplicationLibCode/ReservoirDataModel/RigVisibleCategoriesCalculator.cpp b/ApplicationLibCode/ReservoirDataModel/RigVisibleCategoriesCalculator.cpp index 19f6723940..9c95cd0725 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigVisibleCategoriesCalculator.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigVisibleCategoriesCalculator.cpp @@ -240,6 +240,8 @@ void RigVisibleCategoriesCalculator::appendVisibleIntersectionCells( RimEclipseV for ( const auto geoGenerator : intersectionGeoGenerators ) { + if ( !geoGenerator->isAnyGeometryPresent() ) continue; + for ( const auto& cIdx : geoGenerator->triangleToCellIndex() ) { visibleCells.insert( cIdx );