Export Well Paths. Show commands only for well path nodes

This commit is contained in:
Bjørn Erik Jensen 2018-10-10 10:08:00 +02:00
parent fbe7561896
commit c0d8fe37e1

View File

@ -81,9 +81,10 @@ void RicExportVisibleWellPathsFeature::exportWellPath(const RimWellPath* wellPat
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
bool RicExportVisibleWellPathsFeature::isCommandEnabled() 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();
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------