Salome HOME
Update notebook.myStudy
authoreap <eap@opencascade.com>
Tue, 29 Apr 2014 11:38:50 +0000 (15:38 +0400)
committereap <eap@opencascade.com>
Tue, 29 Apr 2014 11:38:50 +0000 (15:38 +0400)
src/SMESH_SWIG/smeshBuilder.py

index 778b72c3bf2fed3097d8cd286dde73066c6f18e7..6e0812455081549f998ed16694018a11e7158522 100644 (file)
@@ -383,6 +383,9 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen):
     def init_smesh(self,theStudy,geompyD = None):
         #print "init_smesh"
         self.SetCurrentStudy(theStudy,geompyD)
+        if theStudy:
+            global notebook
+            notebook.myStudy = theStudy
 
     ## Creates a mesh. This can be either an empty mesh, possibly having an underlying geometry,
     #  or a mesh wrapping a CORBA mesh given as a parameter.