From: eap Date: Wed, 10 Oct 2012 10:45:50 +0000 (+0000) Subject: in ComputeStateEngine(), clear _computeError at certain events only X-Git-Tag: V6_6_0a1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=798c6330119ff910c48e42750b82162416be9ab2;p=modules%2Fsmesh.git in ComputeStateEngine(), clear _computeError at certain events only --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index d048ce2b0..18fa26f8b 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -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);