PAL9199. update mesh icon in Mesh.Compute()

This commit is contained in:
eap 2005-07-07 07:31:52 +00:00
parent ffccd77f47
commit e37d388ced

View File

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