fix SetSourceMesh(): set mesh before calling NotifySubMeshesHypothesisModification()
void StdMeshers_ProjectionSource1D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================
void StdMeshers_ProjectionSource2D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================
void StdMeshers_ProjectionSource3D::SetSourceMesh(SMESH_Mesh* mesh)
{
- if ( _sourceMesh != mesh )
+ if ( _sourceMesh != mesh ) {
+ _sourceMesh = mesh;
NotifySubMeshesHypothesisModification();
- _sourceMesh = mesh;
+ }
}
//=============================================================================