From: eap Date: Thu, 7 Dec 2006 17:09:33 +0000 (+0000) Subject: PAL13473 (Build repetitive mesh): X-Git-Tag: Before_PLEIADES_modifs~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cd861753b052a444f2ca3959996f2cb136edd0a9;p=modules%2Fsmesh.git PAL13473 (Build repetitive mesh): fix problem with Mesh(None) --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index b4ac7108f..bc6777cc3 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -1022,6 +1022,8 @@ class Mesh: # @param obj Shape to be meshed or SMESH_Mesh object # @param name Study name of the mesh def __init__(self, obj=0, name=0): + if obj is None: + obj = 0 if obj != 0: if isinstance(obj, geompy.GEOM._objref_GEOM_Object): self.geom = obj