mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
0022172: [CEA 790] create the groups corresponding to domains (note 0016221)
A better fix for Clear() for the mesh w/o shape
This commit is contained in:
parent
ad501c420b
commit
f5c4ae89eb
@ -366,16 +366,10 @@ void SMESH_Mesh::Clear()
|
|||||||
{
|
{
|
||||||
if ( SMESH_subMesh *sm = GetSubMeshContaining( GetShapeToMesh() ) )
|
if ( SMESH_subMesh *sm = GetSubMeshContaining( GetShapeToMesh() ) )
|
||||||
{
|
{
|
||||||
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->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
||||||
}
|
sm->ComputeSubMeshStateEngine( SMESH_subMesh::CLEAN );
|
||||||
|
sm->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
|
||||||
|
sm->ComputeSubMeshStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_isModified = false;
|
_isModified = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user