From: eap Date: Tue, 23 Oct 2012 12:42:23 +0000 (+0000) Subject: 21680: EDF 2288 SMESH: creation of 0D elements from other elements X-Git-Tag: V6_6_0b1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12cbac91e8794ec3eac1cc598976fdcc0855aa91;p=modules%2Fsmesh.git 21680: EDF 2288 SMESH: creation of 0D elements from other elements In RemoveGroupWithContents(), make python dump before group removal --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 721476f83..4ea10e1e5 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -1064,11 +1064,11 @@ void SMESH_Mesh_i::RemoveGroupWithContents( SMESH::SMESH_GroupBase_ptr theGroup else aMeshEditor->RemoveElements( anIds ); + // Update Python script (theGroup must be alive for this) + pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )"; + // Remove group RemoveGroup( theGroup ); - - // Update Python script - pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )"; } //================================================================================