From 571d6f3701c28911811671e5553d528956feb5eb Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 23 Oct 2008 06:35:48 +0000 Subject: [PATCH] PAL20544 4x: problems with Concatenate(). fix SetName(obj, name) for the case if obj is instance of class Mesh or Mesh_Algorithm --- src/SMESH_SWIG/smeshDC.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 88aa2a6f6..c9d99bf92 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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: -- 2.39.2