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:
eap 2008-10-23 06:34:40 +00:00
parent 6781ccc37a
commit 54e2aba6c5

View File

@ -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: