mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5582 Fix crash in GeoMech contour map
This commit is contained in:
parent
bd1d1caacc
commit
86fa10fd13
@ -278,12 +278,15 @@ void RivGeoMechVizLogic::calculateCurrentTotalCellVisibility( cvf::UByteArray* t
|
|||||||
std::vector<RivGeoMechPartMgrCache::Key> visiblePartMgrs = keysToVisiblePartMgrs( timeStepIndex );
|
std::vector<RivGeoMechPartMgrCache::Key> visiblePartMgrs = keysToVisiblePartMgrs( timeStepIndex );
|
||||||
for ( size_t pmIdx = 0; pmIdx < visiblePartMgrs.size(); ++pmIdx )
|
for ( size_t pmIdx = 0; pmIdx < visiblePartMgrs.size(); ++pmIdx )
|
||||||
{
|
{
|
||||||
RivGeoMechPartMgr* partMgr = m_partMgrCache->partMgr( visiblePartMgrs[pmIdx] );
|
RivGeoMechPartMgr* partMgr = getUpdatedPartMgr( visiblePartMgrs[pmIdx] );
|
||||||
|
CVF_ASSERT( partMgr );
|
||||||
cvf::ref<cvf::UByteArray> visibility = partMgr->cellVisibility( 0 );
|
if ( partMgr )
|
||||||
for ( int elmIdx = 0; elmIdx < elmCount; ++elmIdx )
|
|
||||||
{
|
{
|
||||||
( *totalVisibility )[elmIdx] |= ( *visibility )[elmIdx];
|
cvf::ref<cvf::UByteArray> visibility = partMgr->cellVisibility( 0 );
|
||||||
|
for ( int elmIdx = 0; elmIdx < elmCount; ++elmIdx )
|
||||||
|
{
|
||||||
|
( *totalVisibility )[elmIdx] |= ( *visibility )[elmIdx];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user