0000890: bug in Draft Offset

This commit is contained in:
Yorik van Havre 2012-12-19 13:54:03 -02:00
parent 343effebc2
commit 480f280322

View File

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