mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Export Well Paths. Show commands only for well path nodes
This commit is contained in:
parent
fbe7561896
commit
c0d8fe37e1
@ -81,9 +81,10 @@ void RicExportVisibleWellPathsFeature::exportWellPath(const RimWellPath* wellPat
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicExportVisibleWellPathsFeature::isCommandEnabled()
|
||||
{
|
||||
std::vector<RimWellPath*> wellPaths = RicExportCompletionsForVisibleWellPathsFeature::visibleWellPaths();
|
||||
std::vector<RimWellPath*> selectedWellPaths = caf::selectedObjectsByTypeStrict<RimWellPath*>();
|
||||
std::vector<RimWellPath*> visibleWellPaths = RicExportCompletionsForVisibleWellPathsFeature::visibleWellPaths();
|
||||
|
||||
return !wellPaths.empty();
|
||||
return !selectedWellPaths.empty() && !visibleWellPaths.empty();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user