Fixed missing regeneration of geometry when deleting all well path fractures

This commit is contained in:
Magne Sjaastad
2017-02-02 07:48:58 +01:00
parent 6d95d00863
commit 57a1cd0c64

View File

@@ -19,8 +19,9 @@
#include "RicWellPathFracturesDeleteAllFeature.h"
#include "RimWellPathFractureCollection.h"
#include "RimEclipseView.h"
#include "RimWellPathCollection.h"
#include "RimWellPathFractureCollection.h"
#include "cafSelectionManager.h"
@@ -64,10 +65,9 @@ void RicWellPathFracturesDeleteAllFeature::onActionTriggered(bool isChecked)
fractureCollection->uiCapability()->updateConnectedEditors();
RimEclipseView* mainView = nullptr;
fractureCollection->firstAncestorOrThisOfType(mainView);
if (mainView) mainView->scheduleCreateDisplayModelAndRedraw();
RimWellPathCollection* wellPathColl = nullptr;
fractureCollection->firstAncestorOrThisOfType(wellPathColl);
if (wellPathColl) wellPathColl->scheduleGeometryRegenAndRedrawViews();
}
}