#3068 Perforation Interval : Make sure a new perforation interval always is visible

This commit is contained in:
Magne Sjaastad committed 2018-06-20 11:44:01 +02:00
1 parent 508f33903f
commit 01ba1dfa4f
1 file changed
+8
@@ -19,6 +19,8 @@
#include "RimPerforationCollection.h"
#include "RiaApplication.h"
#include "RimPerforationInterval.h"
#include "RimProject.h"
#include "Rim3dView.h"
@@ -83,6 +85,12 @@ void RimPerforationCollection::appendPerforation(RimPerforationInterval* perfora
updateConnectedEditors();
Riu3DMainWindowTools::selectAsCurrentItem(perforation);
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
if (activeView)
{
activeView->hasUserRequestedAnimation = true;
}
RimProject* proj;
this->firstAncestorOrThisOfTypeAsserted(proj);
proj->reloadCompletionTypeResultsInAllViews();