From 1c3b8d413bb6e3c5addea3f21fa9dd54fbe86ac9 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 17 Oct 2011 09:59:32 +0000 Subject: [PATCH] 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 --- src/SMESH/SMESH_subMesh.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 7f766cc43..fb86778c7 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -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); } }