#4297 2D intersection view: Initialize with timestep from source view

This commit is contained in:
Magne Sjaastad 2019-04-05 14:17:44 +02:00
parent 9edd567d42
commit f2af02cc2d

View File

@ -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);
}