Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#16648 [CEA] RadialQuadrangle algorithm hypothesis change requires a Clear Mesh Data...
[modules/smesh.git]
/
src
/
SMESH
/
SMESH_Mesh.cxx
diff --git
a/src/SMESH/SMESH_Mesh.cxx
b/src/SMESH/SMESH_Mesh.cxx
index 1ea9d48f8340a1ac6ffdfaddc7904ce3c5ee691a..7cc790b4442e2eaa9ff099aa3253a3b9f7842414 100644
(file)
--- 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;
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 <const SMESHDS_Hypothesis * > usedHyps;
SMESH_Algo *algo;
const SMESH_HypoFilter* compatibleHypoKind;
std::list <const SMESHDS_Hypothesis * > usedHyps;
@@
-1258,7
+1265,7
@@
void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h
HasModificationsToDiscard(); // to reset _isModified flag if mesh becomes empty
GetMeshDS()->Modified();
HasModificationsToDiscard(); // to reset _isModified flag if mesh becomes empty
GetMeshDS()->Modified();
- if (
_callUp && hyp
)
+ if (
_callUp && hyp && toCallBack
)
_callUp->HypothesisModified( hyp->GetID() );
}
_callUp->HypothesisModified( hyp->GetID() );
}