#3718 Update 3d View when deleting casing design

This commit is contained in:
Gaute Lindkvist 2018-11-20 15:32:09 +01:00
parent 66d5cedb2e
commit 9763f420a8

View File

@ -79,12 +79,22 @@ void RicDeleteWellPathAttributeFeature::onActionTriggered(bool isChecked)
}
}
if (wellPathAttributeCollection->attributes().empty())
if (wellPathAttributeCollection)
{
RimWellPath* wellPath = nullptr;
wellPathAttributeCollection->firstAncestorOrThisOfTypeAsserted(wellPath);
wellPath->updateConnectedEditors();
Riu3DMainWindowTools::selectAsCurrentItem(wellPath);
if (wellPathAttributeCollection->attributes().empty())
{
RimWellPath* wellPath = nullptr;
wellPathAttributeCollection->firstAncestorOrThisOfTypeAsserted(wellPath);
wellPath->updateConnectedEditors();
Riu3DMainWindowTools::selectAsCurrentItem(wellPath);
}
RimProject* proj = nullptr;
wellPathAttributeCollection->firstAncestorOrThisOfType(proj);
if (proj)
{
proj->scheduleCreateDisplayModelAndRedrawAllViews();
}
}
}