From 60025821aa3babee4f38ccff3b84649d6086b326 Mon Sep 17 00:00:00 2001 From: akk Date: Wed, 27 Dec 2006 12:22:08 +0000 Subject: [PATCH] Fix for IPAL14235. Addition of possibility to use script in batch mode. --- src/SMESH_SWIG/SMESH_test1_AndDisplay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESH_SWIG/SMESH_test1_AndDisplay.py b/src/SMESH_SWIG/SMESH_test1_AndDisplay.py index 106297125..e1a5e01d2 100644 --- a/src/SMESH_SWIG/SMESH_test1_AndDisplay.py +++ b/src/SMESH_SWIG/SMESH_test1_AndDisplay.py @@ -107,4 +107,5 @@ mesh.Compute() salome.sg.updateObjBrowser(1); sg = salome.ImportComponentGUI('SMESH') -sg.CreateAndDisplayActor('0:1:2:3') +if type(sg) != type(salome.salome_ComponentGUI): + sg.CreateAndDisplayActor('0:1:2:3') -- 2.39.2