From: eap Date: Tue, 2 Apr 2013 13:06:05 +0000 (+0000) Subject: Fix OwnHypothesis() X-Git-Tag: pluginMGCleaner~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f85ac62f79aa38648f03cf4155baece51fbf14c;p=modules%2Fsmesh.git Fix OwnHypothesis() - if not distribHyp: + if not self.distribHyp: --- diff --git a/src/SMESH_SWIG/StdMeshersDC.py b/src/SMESH_SWIG/StdMeshersDC.py index 27b1e7075..3e1abf1d3 100644 --- a/src/SMESH_SWIG/StdMeshersDC.py +++ b/src/SMESH_SWIG/StdMeshersDC.py @@ -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