Skip to content

Commit

Permalink
+ Exception handling in _BSpline.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 3, 2014
1 parent 07f3f82 commit 05dac2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -4013,7 +4013,12 @@ def execute(self, obj):
spline.interpolate(obj.Points, True)
# DNC: bug fix: convert to face if closed
shape = Part.Wire(spline.toShape())
shape = Part.Face(shape)
# Creating a face from a closed spline cannot be expected to always work
# Usually, if the spline is not flat the call of Part.Face() fails
try:
shape = Part.Face(shape)
except:
pass
obj.Shape = shape
else:
spline = Part.BSplineCurve()
Expand Down

0 comments on commit 05dac2e

Please sign in to comment.