mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-24 07:50:34 +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
|
pass
|
||||||
if salome.sg.hasDesktop():
|
if salome.sg.hasDesktop():
|
||||||
smeshgui = salome.ImportComponentGUI("SMESH")
|
smeshgui = salome.ImportComponentGUI("SMESH")
|
||||||
smeshgui.Init(salome.myStudyId)
|
smeshgui.Init(self.mesh.GetStudyId())
|
||||||
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok, (self.NbNodes()==0) )
|
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok, (self.NbNodes()==0) )
|
||||||
salome.sg.updateObjBrowser(1)
|
salome.sg.updateObjBrowser(1)
|
||||||
pass
|
pass
|
||||||
@ -1144,7 +1144,7 @@ class Mesh:
|
|||||||
self.mesh.Clear()
|
self.mesh.Clear()
|
||||||
if salome.sg.hasDesktop():
|
if salome.sg.hasDesktop():
|
||||||
smeshgui = salome.ImportComponentGUI("SMESH")
|
smeshgui = salome.ImportComponentGUI("SMESH")
|
||||||
smeshgui.Init(salome.myStudyId)
|
smeshgui.Init(self.mesh.GetStudyId())
|
||||||
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True )
|
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True )
|
||||||
salome.sg.updateObjBrowser(1)
|
salome.sg.updateObjBrowser(1)
|
||||||
|
|
||||||
@ -1154,7 +1154,7 @@ class Mesh:
|
|||||||
self.mesh.ClearSubMesh(geomId)
|
self.mesh.ClearSubMesh(geomId)
|
||||||
if salome.sg.hasDesktop():
|
if salome.sg.hasDesktop():
|
||||||
smeshgui = salome.ImportComponentGUI("SMESH")
|
smeshgui = salome.ImportComponentGUI("SMESH")
|
||||||
smeshgui.Init(salome.myStudyId)
|
smeshgui.Init(self.mesh.GetStudyId())
|
||||||
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True )
|
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), False, True )
|
||||||
salome.sg.updateObjBrowser(1)
|
salome.sg.updateObjBrowser(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user