From e37d388ced31b87ad9fb8d37a690b069a5270cf9 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Jul 2005 07:31:52 +0000 Subject: [PATCH] PAL9199. update mesh icon in Mesh.Compute() --- src/SMESH_SWIG/smesh.py | 3 +++ 1 file changed, 3 insertions(+) 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