From ad501c420baa8e27201cd564f9ebace6d6fe0626 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 4 Oct 2013 10:08:21 +0000 Subject: [PATCH] 0022172: [CEA 790] create the groups corresponding to domains (note 0016221) Fix Clear() for the mesh w/o shape --- src/SMESH/SMESH_Mesh.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index a8a789fbd..486bea51b 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -366,7 +366,10 @@ void SMESH_Mesh::Clear() { if ( SMESH_subMesh *sm = GetSubMeshContaining( GetShapeToMesh() ) ) { - SMESH_subMeshIteratorPtr smIt = sm->getDependsOnIterator(/*includeSelf=*/true, + sm->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE ); + sm->ComputeStateEngine( SMESH_subMesh::CLEAN ); // for event listeners (issue 0020918) + + SMESH_subMeshIteratorPtr smIt = sm->getDependsOnIterator(/*includeSelf=*/false, /*complexShapeFirst=*/true); while ( smIt->more() ) { -- 2.39.2