Janitor: Use RimProject::current() more in fracture code.

This commit is contained in:
Kristian Bendiksen
2021-02-01 12:39:16 +01:00
committed by Magne Sjaastad
parent d941ff58d0
commit e2fc4e3de6
2 changed files with 4 additions and 18 deletions

View File

@@ -366,12 +366,7 @@ void RimFractureTemplate::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
if ( createDisplayModelAndRedraw )
{
RimProject* proj;
this->firstAncestorOrThisOfType( proj );
if ( proj )
{
proj->reloadCompletionTypeResultsInAllViews();
}
RimProject::current()->reloadCompletionTypeResultsInAllViews();
}
}
@@ -806,12 +801,7 @@ void RimFractureTemplate::disconnectAllFracturesAndRedrawViews() const
}
}
RimProject* proj;
this->firstAncestorOrThisOfType( proj );
if ( proj )
{
proj->scheduleCreateDisplayModelAndRedrawAllViews();
}
RimProject::current()->scheduleCreateDisplayModelAndRedrawAllViews();
}
//--------------------------------------------------------------------------------------------------