mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-05 05:06:55 -05:00
#8362 Simulations wells: Fix crash on show spheres.
This commit is contained in:
1 parent
fda4d1d608
commit
be7783776c
1 file changed
+5
-3
@@ -109,9 +109,11 @@ void RivWellSpheresPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicLi
|
||||
}
|
||||
}
|
||||
|
||||
cvf::ref<cvf::Part> part = createPart( centerColorPairs, wellResultFrame->m_isOpen );
|
||||
|
||||
model->addPart( part.p() );
|
||||
if ( !centerColorPairs.empty() )
|
||||
{
|
||||
cvf::ref<cvf::Part> part = createPart( centerColorPairs, wellResultFrame->m_isOpen );
|
||||
model->addPart( part.p() );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user