From cd861753b052a444f2ca3959996f2cb136edd0a9 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Dec 2006 17:09:33 +0000 Subject: [PATCH] PAL13473 (Build repetitive mesh): fix problem with Mesh(None) --- src/SMESH_SWIG/smesh.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2