#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
parent 41ad074a84
commit 590bf8d9fc

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;
}