mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 12:04:16 +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
1e44e7cf5c
commit
571d6f3701
@ -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