#29939 [CEA 29936] mesh is not updated if it's based on ShaperResults group

This commit is contained in:
eap 2022-05-11 16:38:30 +03:00 committed by vsr
parent 4c9ca4f7d3
commit a81fac1d80

View File

@ -2415,8 +2415,10 @@ void SMESH_Mesh_i::CheckGeomModif( bool theIsBreakLink )
{
smIdType nb = NbNodes() + NbElements();
CheckGeomGroupModif();
if ( nb != NbNodes() + NbElements() ) // something removed due to hypotheses change
bool updated = ( nb != NbNodes() + NbElements() );
if ( updated ) // something removed due to hypotheses change
_gen_i->UpdateIcons( me );
if ( updated == geomChanged || nb == 0 )
return;
}