]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
bos #19182: Remove redundant 'father' attribute V9_5_BR fixes_for_950 V9_5_0 V9_5_0rc1 V9_5_0rc2 V9_5_0rc3
authorvsr <vsr@opencascade.com>
Thu, 28 May 2020 12:24:23 +0000 (15:24 +0300)
committervsr <vsr@opencascade.com>
Thu, 28 May 2020 12:24:23 +0000 (15:24 +0300)
src/GEOM_SWIG/geomBuilder.py

index af56238e9d1fa2af8e20d2003b7202ce4c0880c8..cef854f2a38926b0f4433ef79650e8b5b8c1f198 100644 (file)
@@ -732,8 +732,6 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
               GEOM._objref_GEOM_Gen.__init__(self, *args)
               self.myMaxNbSubShapesAllowed = 0 # auto-publishing is disabled by default
               self.myBuilder = None
-              self.father    = None
-
               self.BasicOp  = None
               self.CurvesOp = None
               self.PrimOp   = None
@@ -835,11 +833,11 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
         def init_geom(self):
             self.myStudy = salome.myStudy
             self.myBuilder = self.myStudy.NewBuilder()
-            self.father = self.myStudy.FindComponent("GEOM")
 
             # load data from the study file, if necessary
-            if self.father:
-                self.myBuilder.LoadWith(self.father, self)
+            component = self.myStudy.FindComponent("GEOM")
+            if component:
+                self.myBuilder.LoadWith(component, self)
 
             self.BasicOp  = self.GetIBasicOperations    ()
             self.CurvesOp = self.GetICurvesOperations   ()
@@ -855,11 +853,6 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             self.GroupOp  = self.GetIGroupOperations    ()
             self.FieldOp  = self.GetIFieldOperations    ()
 
-            # set GEOM as root in the use case tree
-            self.myUseCaseBuilder = self.myStudy.GetUseCaseBuilder()
-            self.myUseCaseBuilder.SetRootCurrent()
-            self.myUseCaseBuilder.Append(self.father)
-
             notebook.myStudy = salome.myStudy
             pass
 
@@ -13795,7 +13788,6 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             Returns:
                 a new created folder
             """
-            if not Father: Father = self.father
             return self.CreateFolder(Name, Father)
 
         ## Move object to the specified folder