From 1fb3ff621ac19da15742a5e8b9253b594977d14a Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 25 Mar 2019 18:50:14 +0300 Subject: [PATCH] #16648 [CEA] RadialQuadrangle algorithm hypothesis change requires a Clear Mesh Data beforehand --- src/SMESH/SMESH_Mesh.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 1ea9d48f8..7cc790b44 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -1191,6 +1191,13 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h if ( !GetMeshDS()->IsUsedHypothesis( hyp )) return; + bool toCallBack = true; + if ( _callUp && hyp && NbNodes() == 0 ) // for not loaded mesh + { + _callUp->HypothesisModified( hyp->GetID() ); + toCallBack = ( NbNodes() > 0 ); + } + SMESH_Algo *algo; const SMESH_HypoFilter* compatibleHypoKind; std::list usedHyps; @@ -1258,7 +1265,7 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h HasModificationsToDiscard(); // to reset _isModified flag if mesh becomes empty GetMeshDS()->Modified(); - if (_callUp && hyp) + if ( _callUp && hyp && toCallBack ) _callUp->HypothesisModified( hyp->GetID() ); } -- 2.39.2