]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1
authoreap <eap@opencascade.com>
Thu, 28 Feb 2013 15:12:29 +0000 (15:12 +0000)
committereap <eap@opencascade.com>
Thu, 28 Feb 2013 15:12:29 +0000 (15:12 +0000)
  Fix cleanDependsOn() which mush do at least CHECK_COMPUTE_STATE even in empty mesh

src/SMESH/SMESH_subMesh.cxx

index d015be18dd7d6ff92f267fb2cc829736974c1c7a..83ef5f87c67d5de7f412bcb384678e956a96dcfc 100644 (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);