fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1

Fix cleanDependsOn() which mush do at least CHECK_COMPUTE_STATE even in empty mesh
This commit is contained in:
eap 2013-02-28 15:12:29 +00:00
parent b5d9b2799b
commit 54cd5176e8

View File

@ -1181,11 +1181,14 @@ SMESH_Hypothesis::Hypothesis_Status
void SMESH_subMesh::cleanDependsOn( bool keepSupportedsubMeshes )
{
if ( _father->NbNodes() == 0 ) return;
SMESH_subMeshIteratorPtr smIt = getDependsOnIterator(false,
/*complexShapeFirst=*/true);
if ( !keepSupportedsubMeshes )
if ( _father->NbNodes() == 0 )
{
while ( smIt->more() )
smIt->next()->ComputeStateEngine(CHECK_COMPUTE_STATE);
}
else if ( !keepSupportedsubMeshes )
{
while ( smIt->more() )
smIt->next()->ComputeStateEngine(CLEAN);