From: vsv Date: Wed, 12 Feb 2020 13:35:57 +0000 (+0300) Subject: Do not remove Mesh on geometry change according to request #3134 X-Git-Tag: V9_5_0a1~5^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=800fdf5fdc1b26f01fbd194253fc8a4d400b1c25;p=modules%2Fsmesh.git Do not remove Mesh on geometry change according to request #3134 --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 5e4bba536..f5c36db78 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -2021,6 +2021,8 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh, if ( meshServant ) { meshServant->Load(); // NPAL16168: "geometrical group edition from a submesh don't modify mesh computation" + // Clear meshy because it was not cleared in CheckGeomModif of previous call + meshServant->Clear(); meshServant->CheckGeomModif(); // get local TopoDS_Shape TopoDS_Shape myLocShape; diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 8c2a1a91b..dff142a6a 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -2288,7 +2288,7 @@ void SMESH_Mesh_i::CheckGeomModif( bool isBreakLink ) if ( _preMeshInfo ) _preMeshInfo->ForgetAllData(); - _impl->Clear(); + //_impl->Clear(); TopoDS_Shape newShape = _gen_i->GeomObjectToShape( mainGO ); if ( newShape.IsNull() ) return;