From: eap Date: Thu, 15 Aug 2013 12:08:51 +0000 (+0000) Subject: Fix regression of SMESH_TEST/Grids/smesh/imps6/G0 X-Git-Tag: V7_3_0a1~201 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dac031030728671403d00af31bb221059e34aa5e;p=modules%2Fsmesh.git Fix regression of SMESH_TEST/Grids/smesh/imps6/G0 Reset node data when it is removed + ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index b27c89703..b7ec35521 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -3370,6 +3370,7 @@ void SMDS_Mesh::RemoveFreeElement(const SMDS_MeshElement * elem) myNodes[elemId] = 0; myInfo.myNbNodes--; ((SMDS_MeshNode*) n)->SetPosition(SMDS_SpacePosition::originSpacePosition()); + ((SMDS_MeshNode*) n)->SMDS_MeshElement::init( -1, -1, -1 ); // avoid reuse myNodePool->destroy(static_cast(todest)); myNodeIDFactory->ReleaseID(elemId, vtkId); }