From 800fdf5fdc1b26f01fbd194253fc8a4d400b1c25 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 12 Feb 2020 16:35:57 +0300 Subject: [PATCH] Do not remove Mesh on geometry change according to request #3134 --- src/SMESH_I/SMESH_Gen_i.cxx | 2 ++ src/SMESH_I/SMESH_Mesh_i.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2