#13964 Show/Hide Geometry: Do not manipulate well path visibility control

Stop changing RimWellPathCollection::wellPathVisibility from the Hide Grid
Geometry and Show All Geometry features. Hide still activates the well path
collection so well paths are drawn when grid cells are hidden.
This commit is contained in:
Magne Sjaastad
2026-05-05 12:42:06 +02:00
parent bdb46d9df4
commit e8db66a377
2 changed files with 2 additions and 11 deletions
@@ -81,11 +81,10 @@ void RicHideGridGeometryFeature::onActionTriggered( bool isChecked )
gridView->scheduleCreateDisplayModelAndRedraw();
// Force all well paths visible
// Force well path collection active, but do not change individual well path visibility
if ( auto wellPathColl = RimWellPathCollection::instance() )
{
wellPathColl->isActive = true;
wellPathColl->wellPathVisibility = RimWellPathCollection::FORCE_ALL_ON;
wellPathColl->isActive = true;
wellPathColl->updateConnectedEditors();
}
}
@@ -24,7 +24,6 @@
#include "RimFaultInViewCollection.h"
#include "RimGridView.h"
#include "RimIntersectionCollection.h"
#include "WellPath/RimWellPathCollection.h"
#include "RiuMainWindow.h"
@@ -70,13 +69,6 @@ void RicShowAllGeometryFeature::onActionTriggered( bool isChecked )
RiuMainWindow::instance()->refreshAnimationActions();
gridView->scheduleCreateDisplayModelAndRedraw();
// Restore well path visibility to individual control
if ( auto wellPathColl = RimWellPathCollection::instance() )
{
wellPathColl->wellPathVisibility = RimWellPathCollection::ALL_ON;
wellPathColl->updateConnectedEditors();
}
}
//--------------------------------------------------------------------------------------------------