Fix OwnHypothesis()

-        if not distribHyp:
+        if not self.distribHyp:
This commit is contained in:
eap 2013-04-02 13:06:05 +00:00
parent 641a9ef553
commit 0f85ac62f7

View File

@ -895,7 +895,7 @@ 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:
if not self.distribHyp:
self.distribHyp = self.Hypothesis("LayerDistribution", UseExisting=0)
self.distribHyp.SetLayerDistribution( hyp )
return hyp