mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Regression of SALOME_TESTS/Grids/smesh/imps_09/K5
Take care to remove a node from its sub-mesh
This commit is contained in:
parent
2ec7f35ace
commit
b099b4c7c3
@ -895,7 +895,8 @@ void SMESHDS_Mesh::RemoveFreeNode(const SMDS_MeshNode * n,
|
|||||||
|
|
||||||
// Rm from sub-mesh
|
// Rm from sub-mesh
|
||||||
// Node should belong to only one sub-mesh
|
// Node should belong to only one sub-mesh
|
||||||
if( subMesh )
|
if ( !subMesh || !subMesh->RemoveNode(n,/*deleted=*/false))
|
||||||
|
if (( subMesh = MeshElements( n->getshapeId() )))
|
||||||
subMesh->RemoveNode(n,/*deleted=*/false );
|
subMesh->RemoveNode(n,/*deleted=*/false );
|
||||||
|
|
||||||
SMDS_Mesh::RemoveFreeElement(n);
|
SMDS_Mesh::RemoveFreeElement(n);
|
||||||
|
Loading…
Reference in New Issue
Block a user