]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
in ComputeStateEngine(), clear _computeError at certain events only
authoreap <eap@opencascade.com>
Wed, 10 Oct 2012 10:45:50 +0000 (10:45 +0000)
committereap <eap@opencascade.com>
Wed, 10 Oct 2012 10:45:50 +0000 (10:45 +0000)
src/SMESH/SMESH_subMesh.cxx

index d048ce2b084f84c50483b021403bae449e92e6b0..18fa26f8b15ad9c2dff2f3e133bcc234a1a76b43 100644 (file)
@@ -1258,7 +1258,19 @@ static void cleanSubMesh( SMESH_subMesh * subMesh )
 
 bool SMESH_subMesh::ComputeStateEngine(int event)
 {
-  _computeError.reset();
+  switch ( event ) {
+  case MODIF_ALGO_STATE:
+  case COMPUTE:
+    //case COMPUTE_CANCELED:
+  case CLEAN:
+    //case SUBMESH_COMPUTED:
+    //case SUBMESH_RESTORED:
+    //case SUBMESH_LOADED:
+    //case MESH_ENTITY_REMOVED:
+    //case CHECK_COMPUTE_STATE:
+    _computeError.reset(); break;
+  default:;
+  }
 
   //MESSAGE("SMESH_subMesh::ComputeStateEngine");
   //SCRUTE(_computeState);