From: eap Date: Fri, 29 Mar 2013 13:29:39 +0000 (+0000) Subject: 0051789: TC7.2.0: NoteBook cannot update study X-Git-Tag: pluginMGCleaner~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c81b247e5c5d2459ad261c8158d8bf790ee1647;p=modules%2Fsmesh.git 0051789: TC7.2.0: NoteBook cannot update study In StdMeshersDC_RadialPrism3D, create LayerDistribution hyp only as needed --- diff --git a/src/SMESH_SWIG/StdMeshersDC.py b/src/SMESH_SWIG/StdMeshersDC.py index 87a677d73..27b1e7075 100644 --- a/src/SMESH_SWIG/StdMeshersDC.py +++ b/src/SMESH_SWIG/StdMeshersDC.py @@ -870,7 +870,7 @@ class StdMeshersDC_Prism3D(Mesh_Algorithm): else: self.algoType = "RadialPrism_3D" self.Create(mesh, geom, "RadialPrism_3D") - self.distribHyp = self.Hypothesis("LayerDistribution", UseExisting=0) + self.distribHyp = None #self.Hypothesis("LayerDistribution", UseExisting=0) self.nbLayers = None pass pass @@ -895,6 +895,8 @@ class StdMeshersDC_Prism3D(Mesh_Algorithm): self.mesh.smeshpyD.SetCurrentStudy( None ) hyp = self.mesh.smeshpyD.CreateHypothesis(hypType, so) self.mesh.smeshpyD.SetCurrentStudy( study ) # enables publishing + if not distribHyp: + self.distribHyp = self.Hypothesis("LayerDistribution", UseExisting=0) self.distribHyp.SetLayerDistribution( hyp ) return hyp @@ -1012,7 +1014,7 @@ class StdMeshersDC_RadialPrism3D(StdMeshersDC_Prism3D): if not shape: shape = mesh.geom self.Create(mesh, geom, "RadialPrism_3D") - self.distribHyp = self.Hypothesis("LayerDistribution", UseExisting=0) + self.distribHyp = None self.nbLayers = None return