From: eap Date: Wed, 11 May 2022 13:38:30 +0000 (+0300) Subject: #29939 [CEA 29936] mesh is not updated if it's based on ShaperResults group X-Git-Tag: V9_9_1b1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=590bf8d9fcc7edb0611f30e3c517f5f62814e236;p=modules%2Fsmesh.git #29939 [CEA 29936] mesh is not updated if it's based on ShaperResults group --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 99e45c66e..d34abc13c 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -2415,9 +2415,11 @@ 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 ); - return; + if ( updated == geomChanged || nb == 0 ) + return; } // Update after shape modification or breakLink w/o geometry change