fix mesh name at "m = smesh.Mesh(mesh)"

This commit is contained in:
eap 2013-01-22 12:40:21 +00:00
parent 7f2264006b
commit f5335851f1

View File

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