mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor connection between cases and views.
Eclipse grid views and contour maps are not longer a child of the case. The views are not separate collections (one for grid and one for contour maps) on root level.
This commit is contained in:
@@ -1013,12 +1013,14 @@ void Rim3dOverlayInfoConfig::updateSeismicInfo( RimSeismicView* seisView )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dOverlayInfoConfig::update3DInfoIn2dViews() const
|
||||
{
|
||||
RimCase* rimCase = firstAncestorOrThisOfType<RimCase>();
|
||||
if ( rimCase )
|
||||
if ( auto rimView = firstAncestorOrThisOfType<Rim3dView>() )
|
||||
{
|
||||
for ( Rim2dIntersectionView* view : rimCase->intersectionViewCollection()->views() )
|
||||
if ( RimCase* rimCase = rimView->ownerCase() )
|
||||
{
|
||||
view->update3dInfo();
|
||||
for ( Rim2dIntersectionView* view : rimCase->intersectionViewCollection()->views() )
|
||||
{
|
||||
view->update3dInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user