From: vsr Date: Wed, 15 Dec 2010 09:59:02 +0000 (+0000) Subject: Fix problem in GetIGESUnit() caused by changes in SubShapeAll() function's behavior X-Git-Tag: V6_2_0a2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=910ec49d5b37696717373ba9f2a9320e36222bc1;p=modules%2Fgeom.git Fix problem in GetIGESUnit() caused by changes in SubShapeAll() function's behavior --- diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index fe8904335..fc2081f32 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -3623,7 +3623,10 @@ class geompyDC(GEOM._objref_GEOM_Gen): #RaiseIfFailed("Import", self.InsertOp) # recieve name using returned vertex UnitName = "M" - vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"]) + if anObj.GetShapeType() == GEOM.VERTEX: + vertices = [anObj] + else: + vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"]) if len(vertices)>0: p = self.PointCoordinates(vertices[0]) if abs(p[0]-0.01) < 1.e-6: