From: vsr Date: Fri, 6 Feb 2015 13:54:08 +0000 (+0300) Subject: If study is loaded from HDF file, init_smesh() has to load data to the engine calling... X-Git-Tag: V7_6_0a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=02685fae6fef576d29fa00f08012f8a6d2f64a25;p=modules%2Fsmesh.git If study is loaded from HDF file, init_smesh() has to load data to the engine calling LoadWith() function of StudyBuilder --- diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index 132313ef0..a1cad6a92 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -536,6 +536,12 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen): notebook = salome_notebook.NoteBook( theStudy ) else: notebook = salome_notebook.NoteBook( salome_notebook.PseudoStudyForNoteBook() ) + if theStudy: + sb = theStudy.NewBuilder() + sc = theStudy.FindComponent("SMESH") + if sc: sb.LoadWith(sc, self) + pass + pass ## Gets the current study # @ingroup l1_auxiliary