]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Assure re-compute after "Clear Mesh data" if there was computation failure
authoreap <eap@opencascade.com>
Mon, 9 Jun 2008 08:05:23 +0000 (08:05 +0000)
committereap <eap@opencascade.com>
Mon, 9 Jun 2008 08:05:23 +0000 (08:05 +0000)
src/SMESH/SMESH_Mesh.cxx

index 07bff87759bad05c2b7ef1ad21e19605999dbd72..497bf99909f5ff056ae8d825e9a96d7940288d8c 100644 (file)
@@ -223,6 +223,8 @@ void SMESH_Mesh::Clear()
       if ( shapeType == TopAbs_VERTEX || shapeType < TopAbs_SOLID )
         // all other shapes depends on vertices so they are already cleaned
         sm->ComputeStateEngine( SMESH_subMesh::CLEAN );
+      // to recompute even if failed
+      sm->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
     }
   }