mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
#12265 Make sure mesh lines are displayed correctly for all time steps
This commit is contained in:
1 parent
70fe005d8a
commit
128fef8493
1 file changed
+3
-2
@@ -80,7 +80,8 @@ bool RivSurfacePartMgr::isNativePartMgr() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivSurfacePartMgr::appendNativeGeometryPartsToModel( cvf::ModelBasicList* model, cvf::Transform* scaleTransform )
|
||||
{
|
||||
if ( m_nativeTrianglesPart.isNull() || m_surfaceInView->surface()->surfaceData() != m_usedSurfaceData.p() )
|
||||
bool surfaceDataChanged = m_surfaceInView->surface()->surfaceData() != m_usedSurfaceData.p();
|
||||
if ( m_nativeTrianglesPart.isNull() || surfaceDataChanged )
|
||||
{
|
||||
generateNativePartGeometry();
|
||||
}
|
||||
@@ -92,7 +93,7 @@ void RivSurfacePartMgr::appendNativeGeometryPartsToModel( cvf::ModelBasicList* m
|
||||
|
||||
model->addPart( m_nativeTrianglesPart.p() );
|
||||
|
||||
if ( m_nativeMeshLinesPart.isNull() && m_surfaceInView->isMeshLinesEnabled() )
|
||||
if ( ( m_nativeMeshLinesPart.isNull() || surfaceDataChanged ) && m_surfaceInView->isMeshLinesEnabled() )
|
||||
{
|
||||
generateNativeLinesPartGeometry();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user