adjust for shaperBuilder

This commit is contained in:
eap 2020-01-23 21:56:19 +03:00
parent 7c8ea81b29
commit fe414fe4e7
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ def AssureGeomPublished(mesh, geom, name=''):
"""
if not mesh.smeshpyD.IsEnablePublish():
return
if not isinstance( geom, geomBuilder.GEOM._objref_GEOM_Object ):
if not hasattr( geom, "GetShapeType" ):
return
if not geom.GetStudyEntry():
## get a name

View File

@ -396,7 +396,7 @@ class Mesh_Algorithm:
geompy = self.mesh.geompyD
for i in reverseList:
if isinstance( i, int ):
s = geompy.SubShapes(self.mesh.geom, [i])[0]
s = geompy.GetSubShape(self.mesh.geom, [i])
if s.GetShapeType() != geomBuilder.GEOM.EDGE:
raise TypeError("Not EDGE index given")
resList.append( i )