From 07f1cc8292c5c1681a8eb903b11a5434d75b2f08 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 28 Oct 2011 12:47:11 +0000 Subject: [PATCH] speed up NotifySubMeshesHypothesisModification() + if ( !GetMeshDS()->IsUsedHypothesis( hyp )) + return; --- src/SMESH/SMESH_Mesh.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2