]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13330( When mesh generation does not success, trace where )
authoreap <eap@opencascade.com>
Thu, 12 Apr 2007 10:26:04 +0000 (10:26 +0000)
committereap <eap@opencascade.com>
Thu, 12 Apr 2007 10:26:04 +0000 (10:26 +0000)
-            smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok )
+            smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok, (NbNodes()==0) )

src/SMESH_SWIG/smesh.py

index 8d3943f1114e0521d2a54b384095826d48bc964c..db9602b401ff1bc0961faada2720f2a05a963245 100644 (file)
@@ -1321,7 +1321,7 @@ class Mesh:
         if salome.sg.hasDesktop():
             smeshgui = salome.ImportComponentGUI("SMESH")
             smeshgui.Init(salome.myStudyId)
-            smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok )
+            smeshgui.SetMeshIcon( salome.ObjectToID( self.mesh ), ok, (NbNodes()==0) )
             salome.sg.updateObjBrowser(1)
             pass
         return ok