Assure re-compute after "Clear Mesh data" if there was computation failure

This commit is contained in:
eap 2008-06-09 08:05:23 +00:00
parent b471fad098
commit 09c536b7fe

View 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 );
}
}