mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
19997: Compute does not work in script, ok in GUI
in clearSubMesh() call ComputeStateEngine() only on not empty submesh
This commit is contained in:
parent
40fa3efd39
commit
b45fb08505
@ -3804,12 +3804,10 @@ static bool clearSubMesh( SMESH_Mesh* theMesh,
|
|||||||
bool removed = false;
|
bool removed = false;
|
||||||
if ( SMESH_subMesh * aSubMesh = theMesh->GetSubMeshContaining( theShape ))
|
if ( SMESH_subMesh * aSubMesh = theMesh->GetSubMeshContaining( theShape ))
|
||||||
{
|
{
|
||||||
if ( aSubMesh->GetSubMeshDS() ) {
|
removed = !aSubMesh->IsEmpty();
|
||||||
removed =
|
if ( removed )
|
||||||
aSubMesh->GetSubMeshDS()->NbElements() || aSubMesh->GetSubMeshDS()->NbNodes();
|
|
||||||
aSubMesh->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
aSubMesh->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
SMESHDS_Mesh* aMeshDS = theMesh->GetMeshDS();
|
SMESHDS_Mesh* aMeshDS = theMesh->GetMeshDS();
|
||||||
if ( SMESHDS_SubMesh* aSubMeshDS = aMeshDS->MeshElements( theShape ))
|
if ( SMESHDS_SubMesh* aSubMeshDS = aMeshDS->MeshElements( theShape ))
|
||||||
|
Loading…
Reference in New Issue
Block a user