]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
bug 11414. Correct removal of wrapped deleted objects
authoreap <eap@opencascade.com>
Thu, 27 Apr 2006 14:41:04 +0000 (14:41 +0000)
committereap <eap@opencascade.com>
Thu, 27 Apr 2006 14:41:04 +0000 (14:41 +0000)
src/SMESH_I/SMESH_DumpPython.cxx

index 24e9751eaba0538e87581849d1fe169d42df53f3..d640a6489c3b6989abc49d93991b0017b0bd4595 100644 (file)
@@ -756,6 +756,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
   for (int ir = 1; ir <= seqRemoved.Length(); ir++) {
     anUpdatedScript += "\n\tSO = theStudy.FindObjectIOR(theStudy.ConvertObjectToIOR(";
     anUpdatedScript += seqRemoved.Value(ir);
+    // for object wrapped by class of smesh.py
+    anEntry = theObjectNames( seqRemoved.Value(ir) );
+    if ( anEntry2AccessorMethod.IsBound( anEntry ) )
+      anUpdatedScript += helper + "." + anEntry2AccessorMethod( anEntry );
     anUpdatedScript += "))\n\tif SO is not None: aStudyBuilder.RemoveObjectWithChildren(SO)";
   }