From: eap Date: Fri, 4 Oct 2013 10:12:56 +0000 (+0000) Subject: 0022172: [CEA 790] create the groups corresponding to domains (note 0016221) X-Git-Tag: V7_3_0a1~136 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f5c4ae89eb95131fe5e192651f87caf55ff5a394;p=modules%2Fsmesh.git 0022172: [CEA 790] create the groups corresponding to domains (note 0016221) A better fix for Clear() for the mesh w/o shape --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 486bea51b..c45fefd88 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -366,16 +366,10 @@ void SMESH_Mesh::Clear() { if ( SMESH_subMesh *sm = GetSubMeshContaining( GetShapeToMesh() ) ) { + sm->ComputeStateEngine( SMESH_subMesh::CLEAN ); + sm->ComputeSubMeshStateEngine( SMESH_subMesh::CLEAN ); 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() ) - { - sm = smIt->next(); - sm->ComputeStateEngine( SMESH_subMesh::CLEAN ); - } + sm->ComputeSubMeshStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE ); } } _isModified = false;