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:
eap 2011-10-17 09:59:32 +00:00
parent 26bfcad40a
commit 1c3b8d413b

View File

@ -1818,7 +1818,8 @@ void SMESH_subMesh::CleanDependants()
// will erase mesh on other shapes in a compound
if ( ancestor.ShapeType() >= TopAbs_SOLID ) {
SMESH_subMesh *aSubMesh = _father->GetSubMeshContaining(ancestor);
if (aSubMesh)
if (aSubMesh &&
!aSubMesh->IsEmpty() ) // prevent infinite CLEAN via event lesteners
aSubMesh->ComputeStateEngine(CLEAN);
}
}