Commit 480f2803 authored by Yorik van Havre's avatar Yorik van Havre
Browse files

0000890: bug in Draft Offset

parent 343effeb
...@@ -770,7 +770,7 @@ def getNormal(shape): ...@@ -770,7 +770,7 @@ def getNormal(shape):
"finds the normal of a shape, if possible" "finds the normal of a shape, if possible"
n = Vector(0,0,1) n = Vector(0,0,1)
if (shape.ShapeType == "Face") and hasattr(shape,"normalAt"): 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": elif shape.ShapeType == "Edge":
if isinstance(shape.Edges[0].Curve,Part.Circle): if isinstance(shape.Edges[0].Curve,Part.Circle):
n = shape.Edges[0].Curve.Axis n = shape.Edges[0].Curve.Axis
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment