Salome HOME
Merge from V6_main 01/04/2013 V7_2_0b1
authorvsr <vsr@opencascade.com>
Tue, 2 Apr 2013 14:33:29 +0000 (14:33 +0000)
committervsr <vsr@opencascade.com>
Tue, 2 Apr 2013 14:33:29 +0000 (14:33 +0000)
src/SMESH_SWIG/StdMeshersDC.py

index 27b1e70..3e1abf1 100644 (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