From: eap Date: Thu, 7 Jul 2005 07:30:18 +0000 (+0000) Subject: PAL9199. update mesh icon in Mesh.Compute() X-Git-Tag: V3_0_1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=22fbc3c6550b7e9f51f41f8ef02afd742cd89d11 PAL9199. update mesh icon in Mesh.Compute() --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 2e96ee20f..9c0d2baf7 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -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