#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,9 +2415,11 @@ void SMESH_Mesh_i::CheckGeomModif( bool theIsBreakLink )
{ {
smIdType nb = NbNodes() + NbElements(); smIdType nb = NbNodes() + NbElements();
CheckGeomGroupModif(); 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 ); _gen_i->UpdateIcons( me );
return; if ( updated == geomChanged || nb == 0 )
return;
} }
// Update after shape modification or breakLink w/o geometry change // Update after shape modification or breakLink w/o geometry change