mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
PAL20544 4x: problems with Concatenate().
fix SetName(obj, name) for the case if obj is instance of class Mesh or Mesh_Algorithm
This commit is contained in:
parent
6781ccc37a
commit
54e2aba6c5
@ -174,6 +174,10 @@ def GetName(obj):
|
||||
|
||||
## Sets a name to the object
|
||||
def SetName(obj, name):
|
||||
if isinstance( obj, Mesh ):
|
||||
obj = obj.GetMesh()
|
||||
elif isinstance( obj, Mesh_Algorithm ):
|
||||
obj = obj.GetAlgorithm()
|
||||
ior = salome.orb.object_to_string(obj)
|
||||
sobj = salome.myStudy.FindObjectIOR(ior)
|
||||
if not sobj is None:
|
||||
|
Loading…
Reference in New Issue
Block a user