#7087 Allow creating StimPlanModelPlot without an active 3d view.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2020-12-07 16:14:02 +01:00
1 parent 2e113414e1
commit 470111606b
1 file changed
+1 -4
@@ -184,10 +184,7 @@ RimStimPlanModelPlot* RicNewStimPlanModelPlotFeature::createPlot( RimStimPlanMod
//--------------------------------------------------------------------------------------------------
bool RicNewStimPlanModelPlotFeature::isCommandEnabled()
{
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
if ( !view ) return false;
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>( view );
return eclipseView != nullptr;
return true;
}
//--------------------------------------------------------------------------------------------------