Fix for cylinder with polygon number as a decimal
This commit is contained in:
committed by
Yorik van Havre
parent
6ba7a109f8
commit
22cbd5b825
@@ -904,7 +904,8 @@ def p_cylinder_action(p):
|
||||
h = float(p[3]['h'])
|
||||
r1 = float(p[3]['r1'])
|
||||
r2 = float(p[3]['r2'])
|
||||
n = int(p[3]['$fn'])
|
||||
#n = int(p[3]['$fn'])
|
||||
n = int(round(float(p[3]['$fn'])))
|
||||
fnmax = FreeCAD.ParamGet(\
|
||||
"User parameter:BaseApp/Preferences/Mod/OpenSCAD").\
|
||||
GetInt('useMaxFN')
|
||||
|
||||
Reference in New Issue
Block a user