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 "RiaApplication.h"
|
||||
|
||||
#include "RimFractureModelTemplateCollection.h"
|
||||
#include "RimFractureTemplateCollection.h"
|
||||
#include "RimValveTemplateCollection.h"
|
||||
@ -126,7 +128,10 @@ void RimCompletionTemplateCollection::defineUiTreeOrdering( caf::PdmUiTreeOrderi
|
||||
QString uiConfigName /*= ""*/ )
|
||||
{
|
||||
uiTreeOrdering.add( m_fractureTemplates );
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
uiTreeOrdering.add( m_fractureModelTemplates );
|
||||
}
|
||||
uiTreeOrdering.add( m_valveTemplates );
|
||||
uiTreeOrdering.skipRemainingChildren( true );
|
||||
}
|
||||
|
@ -892,9 +892,12 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
menuBuilder << "RicImportElasticPropertiesFeature";
|
||||
}
|
||||
else if ( dynamic_cast<RimFractureModelTemplateCollection*>( firstUiItem ) )
|
||||
{
|
||||
if ( RiaApplication::enableDevelopmentFeatures() )
|
||||
{
|
||||
menuBuilder << "RicNewFractureModelTemplateFeature";
|
||||
}
|
||||
}
|
||||
else if ( dynamic_cast<RimFractureTemplateCollection*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicPasteEllipseFractureFeature";
|
||||
|
Loading…
Reference in New Issue
Block a user