]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
speed up NotifySubMeshesHypothesisModification()
authoreap <eap@opencascade.com>
Fri, 28 Oct 2011 12:47:11 +0000 (12:47 +0000)
committereap <eap@opencascade.com>
Fri, 28 Oct 2011 12:47:11 +0000 (12:47 +0000)
+  if ( !GetMeshDS()->IsUsedHypothesis( hyp ))
+    return;

src/SMESH/SMESH_Mesh.cxx

index 61cfc4a94454bf03d7004a8fd63ce1455ecf086c..09064df27f131b45d30d9a5d371e3a16b9b8a878 100644 (file)
@@ -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 <const SMESHDS_Hypothesis * > usedHyps;