mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4297 2D intersection view: Initialize with timestep from source view
This commit is contained in:
parent
9edd567d42
commit
f2af02cc2d
@ -98,6 +98,14 @@ void Rim2dIntersectionViewCollection::syncFromExistingIntersections( bool doUpda
|
||||
if (it == intersectionToViewMap.end())
|
||||
{
|
||||
Rim2dIntersectionView* newView = new Rim2dIntersectionView();
|
||||
|
||||
Rim3dView* view = nullptr;
|
||||
intersection->firstAncestorOrThisOfType(view);
|
||||
if (view)
|
||||
{
|
||||
newView->setCurrentTimeStep(view->currentTimeStep());
|
||||
}
|
||||
|
||||
newView->setIntersection(intersection);
|
||||
m_intersectionViews.push_back(newView);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user