Draft: Small fix in Offset tool

This commit is contained in:
Yorik van Havre 2012-05-29 22:25:01 -03:00
parent 141cd5029a
commit 54d4e2cab9

View File

@ -765,7 +765,7 @@ def isReallyClosed(wire):
def getNormal(shape):
"finds the normal of a shape, if possible"
n = Vector(0,0,1)
if shape.ShapeType == "Face":
if (shape.ShapeType == "Face") and hasattr(shape,"normalAt"):
n = shape.normalAt(0.5,0.5)
elif shape.ShapeType == "Edge":
if isinstance(shape.Curve,Part.Circle):