#8362 Simulations wells: Fix crash on show spheres.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2022-03-25 17:45:13 +01:00
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() );
}
}
//--------------------------------------------------------------------------------------------------