From 02685fae6fef576d29fa00f08012f8a6d2f64a25 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 6 Feb 2015 16:54:08 +0300 Subject: [PATCH] If study is loaded from HDF file, init_smesh() has to load data to the engine calling LoadWith() function of StudyBuilder --- src/SMESH_SWIG/smeshBuilder.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2