]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020313
authorptv <ptv@opencascade.com>
Fri, 24 Apr 2009 07:57:47 +0000 (07:57 +0000)
committerptv <ptv@opencascade.com>
Fri, 24 Apr 2009 07:57:47 +0000 (07:57 +0000)
EDF 1002 SMESH: Mesh groups are not published in the good study

src/SMESH_SWIG/smeshDC.py

index 7b81262a0248edb6125b559758e54653ec3bed97..af928f77df5371d088151cefd98390117f32e517 100644 (file)
@@ -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)