Skip to content

Commit

Permalink
OpenSCAD: [skip ci] set default of 16 for useMaxFN parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 6, 2020
1 parent 9c3f9b7 commit 4c1f029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mod/OpenSCAD/Resources/ui/openscadprefs-base.ui
Expand Up @@ -153,7 +153,7 @@
<string>The maximum number of faces of a polygon, prism or frustum. If fn is greater than this value the object is considered to be a circular. Set to 0 for no limit</string>
</property>
<property name="value">
<number>0</number>
<number>16</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>useMaxFN</cstring>
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/OpenSCAD/importCSG.py
Expand Up @@ -925,7 +925,7 @@ def p_cylinder_action(p):
n = int(round(float(p[3]['$fn'])))
fnmax = FreeCAD.ParamGet(\
"User parameter:BaseApp/Preferences/Mod/OpenSCAD").\
GetInt('useMaxFN')
GetInt('useMaxFN', 16)
if printverbose: print(p[3])
if h > 0:
if ( r1 == r2 and r1 > 0):
Expand Down

0 comments on commit 4c1f029

Please sign in to comment.