From a81fac1d80f4f39409028bbced3e4badd16811b1 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 11 May 2022 16:38:30 +0300 Subject: [PATCH] #29939 [CEA 29936] mesh is not updated if it's based on ShaperResults group --- src/SMESH_I/SMESH_Mesh_i.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 3473c4a65..0ea1976d3 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 -- 2.39.2