mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fracture Model Template: Hide new features behind experimental flag
This commit is contained in:
parent
412df0f33b
commit
03ae6e5ee4
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include "RimCompletionTemplateCollection.h"
|
#include "RimCompletionTemplateCollection.h"
|
||||||
|
|
||||||
|
#include "RiaApplication.h"
|
||||||
|
|
||||||
#include "RimFractureModelTemplateCollection.h"
|
#include "RimFractureModelTemplateCollection.h"
|
||||||
#include "RimFractureTemplateCollection.h"
|
#include "RimFractureTemplateCollection.h"
|
||||||
#include "RimValveTemplateCollection.h"
|
#include "RimValveTemplateCollection.h"
|
||||||
@ -126,7 +128,10 @@ void RimCompletionTemplateCollection::defineUiTreeOrdering( caf::PdmUiTreeOrderi
|
|||||||
QString uiConfigName /*= ""*/ )
|
QString uiConfigName /*= ""*/ )
|
||||||
{
|
{
|
||||||
uiTreeOrdering.add( m_fractureTemplates );
|
uiTreeOrdering.add( m_fractureTemplates );
|
||||||
uiTreeOrdering.add( m_fractureModelTemplates );
|
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||||
|
{
|
||||||
|
uiTreeOrdering.add( m_fractureModelTemplates );
|
||||||
|
}
|
||||||
uiTreeOrdering.add( m_valveTemplates );
|
uiTreeOrdering.add( m_valveTemplates );
|
||||||
uiTreeOrdering.skipRemainingChildren( true );
|
uiTreeOrdering.skipRemainingChildren( true );
|
||||||
}
|
}
|
||||||
|
@ -893,7 +893,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
|||||||
}
|
}
|
||||||
else if ( dynamic_cast<RimFractureModelTemplateCollection*>( firstUiItem ) )
|
else if ( dynamic_cast<RimFractureModelTemplateCollection*>( firstUiItem ) )
|
||||||
{
|
{
|
||||||
menuBuilder << "RicNewFractureModelTemplateFeature";
|
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||||
|
{
|
||||||
|
menuBuilder << "RicNewFractureModelTemplateFeature";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( dynamic_cast<RimFractureTemplateCollection*>( firstUiItem ) )
|
else if ( dynamic_cast<RimFractureTemplateCollection*>( firstUiItem ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user