From: ptv Date: Fri, 24 Apr 2009 07:57:47 +0000 (+0000) Subject: 0020313 X-Git-Tag: V5_1_2rc1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddbb0db1330a19ededdaf925c217664c02804d69;p=modules%2Fsmesh.git 0020313 EDF 1002 SMESH: Mesh groups are not published in the good study --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 7b81262a0..af928f77d 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1132,7 +1132,7 @@ class Mesh: pass if salome.sg.hasDesktop(): smeshgui = salome.ImportComponentGUI("SMESH") - smeshgui.Init(salome.myStudyId) + smeshgui.Init(self.mesh.GetStudyId()) smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok, (self.NbNodes()==0) ) salome.sg.updateObjBrowser(1) pass @@ -1144,7 +1144,7 @@ class Mesh: self.mesh.Clear() if salome.sg.hasDesktop(): smeshgui = salome.ImportComponentGUI("SMESH") - smeshgui.Init(salome.myStudyId) + smeshgui.Init(self.mesh.GetStudyId()) smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True ) salome.sg.updateObjBrowser(1) @@ -1154,7 +1154,7 @@ class Mesh: self.mesh.ClearSubMesh(geomId) if salome.sg.hasDesktop(): smeshgui = salome.ImportComponentGUI("SMESH") - smeshgui.Init(salome.myStudyId) + smeshgui.Init(self.mesh.GetStudyId()) smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True ) salome.sg.updateObjBrowser(1)