mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
In CleanDependants(), do not call ComputeStateEngine(CLEAN) of a dependant subMesh if it IsEmpty() in order to prevent infinite CLEAN via event lesteners
This commit is contained in:
parent
26bfcad40a
commit
1c3b8d413b
@ -1818,7 +1818,8 @@ void SMESH_subMesh::CleanDependants()
|
|||||||
// will erase mesh on other shapes in a compound
|
// will erase mesh on other shapes in a compound
|
||||||
if ( ancestor.ShapeType() >= TopAbs_SOLID ) {
|
if ( ancestor.ShapeType() >= TopAbs_SOLID ) {
|
||||||
SMESH_subMesh *aSubMesh = _father->GetSubMeshContaining(ancestor);
|
SMESH_subMesh *aSubMesh = _father->GetSubMeshContaining(ancestor);
|
||||||
if (aSubMesh)
|
if (aSubMesh &&
|
||||||
|
!aSubMesh->IsEmpty() ) // prevent infinite CLEAN via event lesteners
|
||||||
aSubMesh->ComputeStateEngine(CLEAN);
|
aSubMesh->ComputeStateEngine(CLEAN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user