Fix for circlee with zero radius

This commit is contained in:
Keith Sloan
2017-05-17 05:45:55 +01:00
parent 9e1730ab7b
commit a4e2dedb2a

View File

@@ -1011,6 +1011,8 @@ def p_circle_action(p) :
'circle_action : circle LPAREN keywordargument_list RPAREN SEMICOL'
if printverbose: print("Circle : "+str(p[3]))
r = float(p[3]['r'])
# Avoid zero radius
if r == 0 : r = 0.00001
n = int(p[3]['$fn'])
fnmax = FreeCAD.ParamGet(\
"User parameter:BaseApp/Preferences/Mod/OpenSCAD").\