#1520 Ensure cell results are updated when well path visibility is toggled

This commit is contained in:
Bjørnar Grip Fjær 2017-06-01 12:54:37 +02:00
parent b20a563517
commit 5208815622

View File

@ -240,8 +240,15 @@ void RimWellPath::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
partMgr()->scheduleGeometryRegen();
RimProject* proj;
this->firstAncestorOrThisOfType(proj);
if (proj) proj->createDisplayModelAndRedrawAllViews();
this->firstAncestorOrThisOfTypeAsserted(proj);
if (changedField == &showWellPath)
{
proj->removeResult(RimDefines::DYNAMIC_NATIVE, RimDefines::completionTypeResultName());
}
else
{
proj->createDisplayModelAndRedrawAllViews();
}
}
//--------------------------------------------------------------------------------------------------