]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13473 (Build repetitive mesh):
authoreap <eap@opencascade.com>
Thu, 7 Dec 2006 17:09:33 +0000 (17:09 +0000)
committereap <eap@opencascade.com>
Thu, 7 Dec 2006 17:09:33 +0000 (17:09 +0000)
fix problem with Mesh(None)

src/SMESH_SWIG/smesh.py

index b4ac7108f632b159eb9cb84cb7d5f95744158c3c..bc6777cc3367cc43abbb78d6dc1c4db88d8f5761 100644 (file)
@@ -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