mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
#14198 Exclude ResInsight-generated faults from default fault distance selection
When a new Fault Distance defaults to all faults, the ResInsight-generated undefined grid faults were ticked by default. Add RimFaultInView::isGeneratedFault and filter these faults out of the default selection in both the UI feature and the Python command. An explicit fault selection is still honored.
This commit is contained in:
1 parent
5b6658f099
commit
b274641e0c
4 files changed
+23
-2
No files matched your search
@@ -97,7 +97,10 @@ void RicNewFaultDistanceResultFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
else if ( eclipseView->faultCollection() )
|
||||
{
|
||||
newResult->setSelectedFaults( eclipseView->faultCollection()->faults() );
|
||||
// Default to all faults, but leave the ResInsight-generated faults unticked.
|
||||
std::vector<RimFaultInView*> defaultFaults = eclipseView->faultCollection()->faults();
|
||||
std::erase_if( defaultFaults, []( RimFaultInView* fault ) { return fault && fault->isGeneratedFault(); } );
|
||||
newResult->setSelectedFaults( defaultFaults );
|
||||
}
|
||||
|
||||
eclipseView->updateConnectedEditors();
|
||||
|
||||
Reference in new issue
Block a user