#8115 3D View : Simplify objects at top level

This commit is contained in:
Magne Sjaastad
2021-10-06 12:10:24 +02:00
parent bfd4457a6a
commit 63ff8ec58b
5 changed files with 27 additions and 15 deletions

View File

@@ -515,15 +515,13 @@ void RimGridView::clearReservoirCellVisibilities()
//--------------------------------------------------------------------------------------------------
void RimGridView::addRequiredUiTreeObjects( caf::PdmUiTreeOrdering& uiTreeOrdering )
{
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
if ( wellPathCollection )
{
RimWellPathCollection* wellPathCollection = RimTools::wellPathCollection();
if ( wellPathCollection )
const RimWellMeasurementCollection* measurementCollection = wellPathCollection->measurementCollection();
if ( !measurementCollection->measurements().empty() )
{
const RimWellMeasurementCollection* measurementCollection = wellPathCollection->measurementCollection();
if ( !measurementCollection->measurements().empty() )
{
uiTreeOrdering.add( &m_wellMeasurementCollection );
}
uiTreeOrdering.add( &m_wellMeasurementCollection );
}
}
}