mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
Export Well Paths. Show commands only for well path nodes
This commit is contained in:
1 parent
fbe7561896
commit
c0d8fe37e1
1 file changed
+3
-2
@@ -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();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user