mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-30 20:20:33 +05:00
Fix names of the python variables for not published GEOM objects.
This commit is contained in:
parent
38130226cd
commit
43f4ad9b7d
@ -1305,17 +1305,18 @@ void ReplaceEntriesByNames (TCollection_AsciiString& theScript,
|
||||
theObjListToPublish.Append( anEntry );
|
||||
|
||||
TObjectData& data = aEntry2ObjData[ anEntry ];
|
||||
if ( !data._name.IsEmpty() ) { // published object
|
||||
if ( data._pyName.IsEmpty() ) { // encounted for the 1st time
|
||||
if ( !data._name.IsEmpty() ) { // published object
|
||||
data._pyName = data._name;
|
||||
healPyName( data._pyName, anEntry, aNameToEntry);
|
||||
}
|
||||
}
|
||||
else {
|
||||
do {
|
||||
data._pyName = aBaseName + TCollection_AsciiString(++objectCounter);
|
||||
} while(aNameToEntry.IsBound(data._pyName));
|
||||
}
|
||||
}
|
||||
|
||||
aNameToEntry.Bind(data._pyName, anEntry); // to detect same name of diff objects
|
||||
|
||||
anUpdatedScript += data._pyName;
|
||||
|
Loading…
Reference in New Issue
Block a user