mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7087 Allow creating StimPlanModelPlot without an active 3d view.
This commit is contained in:
parent
2e113414e1
commit
470111606b
@ -184,10 +184,7 @@ RimStimPlanModelPlot* RicNewStimPlanModelPlotFeature::createPlot( RimStimPlanMod
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RicNewStimPlanModelPlotFeature::isCommandEnabled()
|
bool RicNewStimPlanModelPlotFeature::isCommandEnabled()
|
||||||
{
|
{
|
||||||
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
|
return true;
|
||||||
if ( !view ) return false;
|
|
||||||
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>( view );
|
|
||||||
return eclipseView != nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user