0022172: [CEA 790] create the groups corresponding to domains (note 0016221)

Fix Clear() for the mesh w/o shape
This commit is contained in:
eap 2013-10-04 10:08:21 +00:00
parent 53bf890d48
commit ad501c420b

View File

@ -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() )
{