Salome HOME
23394: EDF - non regression test fails - problem of projection of a quadrangle face...
[modules/smesh.git] / src / SMESH / SMESH_Mesh.cxx
index a3e707247e2c920bd2fdbcdac14250e3cc28b802..76d2dbc05d7938820cfa847df0bb9a808f489c49 100644 (file)
@@ -1258,15 +1258,14 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h
     return;
 
   // if all meshed EDGEs will be notified then the notification is equivalent
-  // to the whole mesh clearing
-  if ( allMeshedEdgesNotified )
+  // to the whole mesh clearing, which is usually faster
+  if ( allMeshedEdgesNotified && NbNodes() > 0 )
   {
-    if ( NbNodes() > 0 )
-      Clear();
+    Clear();
   }
   else
   {
-    // notify in reverse order to avoid filling of the pool of IDs
+    // notify in reverse order to avoid filling the pool of IDs
     for ( int i = smToNotify.size()-1; i >= 0; --i )
       smToNotify[i]->AlgoStateEngine(SMESH_subMesh::MODIF_HYP,
                                      const_cast< SMESH_Hypothesis*>( hyp ));