PAL9199. update mesh icon in Mesh.Compute()

This commit is contained in:
eap 2005-07-07 07:30:18 +00:00
parent ad9d3ea3e7
commit 22fbc3c655

View File

@ -407,6 +407,9 @@ class Mesh:
""" """
b = smesh.Compute(self.mesh, self.geom) b = smesh.Compute(self.mesh, self.geom)
if salome.sg.hasDesktop(): if salome.sg.hasDesktop():
smeshgui = salome.ImportComponentGUI("SMESH")
smeshgui.Init(salome.myStudyId)
smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), b )
salome.sg.updateObjBrowser(1) salome.sg.updateObjBrowser(1)
return b return b