]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL9199. update mesh icon in Mesh.Compute()
authoreap <eap@opencascade.com>
Thu, 7 Jul 2005 07:31:52 +0000 (07:31 +0000)
committereap <eap@opencascade.com>
Thu, 7 Jul 2005 07:31:52 +0000 (07:31 +0000)
src/SMESH_SWIG/smesh.py

index 2e96ee20fbd21c13c6d898cf72559ea38848ef12..9c0d2baf766753f39159e17804fc89aaeacdb211 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