From: eap Date: Fri, 28 Oct 2011 12:47:11 +0000 (+0000) Subject: speed up NotifySubMeshesHypothesisModification() X-Git-Tag: V6_4_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07f1cc8292c5c1681a8eb903b11a5434d75b2f08;p=modules%2Fsmesh.git speed up NotifySubMeshesHypothesisModification() + if ( !GetMeshDS()->IsUsedHypothesis( hyp )) + return; --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 61cfc4a94..09064df27 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -988,6 +988,9 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h { Unexpect aCatch(SalomeException); + if ( !GetMeshDS()->IsUsedHypothesis( hyp )) + return; + const SMESH_Algo *foundAlgo = 0; SMESH_HypoFilter algoKind, compatibleHypoKind; list usedHyps;