mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18: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;
|
||||
if ( SMESH_subMesh * aSubMesh = theMesh->GetSubMeshContaining( theShape ))
|
||||
{
|
||||
if ( aSubMesh->GetSubMeshDS() ) {
|
||||
removed =
|
||||
aSubMesh->GetSubMeshDS()->NbElements() || aSubMesh->GetSubMeshDS()->NbNodes();
|
||||
removed = !aSubMesh->IsEmpty();
|
||||
if ( removed )
|
||||
aSubMesh->ComputeStateEngine( SMESH_subMesh::CLEAN );
|
||||
}
|
||||
}
|
||||
else {
|
||||
SMESHDS_Mesh* aMeshDS = theMesh->GetMeshDS();
|
||||
if ( SMESHDS_SubMesh* aSubMeshDS = aMeshDS->MeshElements( theShape ))
|
||||
|
Loading…
Reference in New Issue
Block a user