mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 04:30:39 +05:00
bug 11414. Correct removal of wrapped deleted objects
This commit is contained in:
parent
3c7fb11b5f
commit
81677b70bf
@ -756,6 +756,10 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
|||||||
for (int ir = 1; ir <= seqRemoved.Length(); ir++) {
|
for (int ir = 1; ir <= seqRemoved.Length(); ir++) {
|
||||||
anUpdatedScript += "\n\tSO = theStudy.FindObjectIOR(theStudy.ConvertObjectToIOR(";
|
anUpdatedScript += "\n\tSO = theStudy.FindObjectIOR(theStudy.ConvertObjectToIOR(";
|
||||||
anUpdatedScript += seqRemoved.Value(ir);
|
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)";
|
anUpdatedScript += "))\n\tif SO is not None: aStudyBuilder.RemoveObjectWithChildren(SO)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user