Salome HOME
PAL9199. update mesh icon in Mesh.Compute()
authoreap <eap@opencascade.com>
Thu, 7 Jul 2005 07:30:18 +0000 (07:30 +0000)
committereap <eap@opencascade.com>
Thu, 7 Jul 2005 07:30:18 +0000 (07:30 +0000)
src/SMESH_SWIG/smesh.py

index 2e96ee2..9c0d2ba 100644 (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