mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 02:40: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,11 +3804,9 @@ 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user