From: eap Date: Mon, 9 Jun 2008 08:05:23 +0000 (+0000) Subject: Assure re-compute after "Clear Mesh data" if there was computation failure X-Git-Tag: V4_1_3~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09c536b7fef13561c826b87d23c7f7960c6df5b3;p=modules%2Fsmesh.git Assure re-compute after "Clear Mesh data" if there was computation failure --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 07bff8775..497bf9990 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -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 ); } }