From 798c6330119ff910c48e42750b82162416be9ab2 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 10 Oct 2012 10:45:50 +0000 Subject: [PATCH] in ComputeStateEngine(), clear _computeError at certain events only --- src/SMESH/SMESH_subMesh.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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); -- 2.39.2