]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Do not remove Mesh on geometry change according to request #3134
authorvsv <vsv@opencascade.com>
Wed, 12 Feb 2020 13:35:57 +0000 (16:35 +0300)
committervsv <vsv@opencascade.com>
Wed, 12 Feb 2020 13:35:57 +0000 (16:35 +0300)
src/SMESH_I/SMESH_Gen_i.cxx
src/SMESH_I/SMESH_Mesh_i.cxx

index 5e4bba536096ae18e05d66867cc03b59ae236f84..f5c36db7877995e66933b320912ae4ade5394068 100644 (file)
@@ -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;
index 8c2a1a91b36c820fde5b7e5cec1919c9f46c6259..dff142a6a4b7e48337de5644b698a4aac7cb0a99 100644 (file)
@@ -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;