mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
#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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user