mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-24 04:20:33 +05:00
0020313
EDF 1002 SMESH: Mesh groups are not published in the good study
This commit is contained in:
parent
0b8a0a7ce8
commit
ddbb0db133
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user