Salome HOME
fix mesh name at "m = smesh.Mesh(mesh)"
authoreap <eap@opencascade.com>
Tue, 22 Jan 2013 12:40:21 +0000 (12:40 +0000)
committereap <eap@opencascade.com>
Tue, 22 Jan 2013 12:40:21 +0000 (12:40 +0000)
src/SMESH_SWIG/smeshDC.py

index 6a18f14c9d5398c6351d0bbc567881bef72494a0..74c43a599ed3f186693812c09b954f6ec265a109 100644 (file)
@@ -988,9 +988,9 @@ class Mesh:
             obj = 0
         objHasName = False
         if obj != 0:
-            objHasName = True
             if isinstance(obj, geompyDC.GEOM._objref_GEOM_Object):
                 self.geom = obj
+                objHasName = True
                 # publish geom of mesh (issue 0021122)
                 if not self.geom.GetStudyEntry() and smeshpyD.GetCurrentStudy():
                     objHasName = False