X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Mesh.cxx;fp=src%2FSMESH%2FSMESH_Mesh.cxx;h=76d2dbc05d7938820cfa847df0bb9a808f489c49;hb=55a627cc62a31df28744a61065de9bfe0b193217;hp=a3e707247e2c920bd2fdbcdac14250e3cc28b802;hpb=d053feed93e0bb188a734b5e811a1341a6439435;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index a3e707247..76d2dbc05 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -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 ));