mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix geomech reload issues
This commit is contained in:
@@ -362,10 +362,12 @@ RimPropertyFilterCollection* RimGeoMechView::nativePropertyFilterCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::updateElementDisplacements()
|
||||
{
|
||||
if ( !m_partsCollection->shouldRebuildPartVisualization( m_currentTimeStep, m_showDisplacement, m_displacementScaling ) )
|
||||
return;
|
||||
auto [reload, rebuild] =
|
||||
m_partsCollection->needsReloadOrRebuildUpdate( m_currentTimeStep, m_showDisplacement, m_displacementScaling );
|
||||
|
||||
if ( m_partsCollection->shouldReloadDisplacements( m_currentTimeStep, m_showDisplacement, m_displacementScaling ) )
|
||||
if ( !rebuild ) return;
|
||||
|
||||
if ( reload )
|
||||
{
|
||||
for ( auto part : m_partsCollection->parts() )
|
||||
{
|
||||
@@ -1123,3 +1125,14 @@ void RimGeoMechView::setShowDisplacementsAndUpdate( bool show )
|
||||
m_showDisplacement = show;
|
||||
createDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::resetVizLogic()
|
||||
{
|
||||
if ( m_vizLogic.notNull() )
|
||||
{
|
||||
m_vizLogic->resetPartMgrs();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user