Skip to content

Commit

Permalink
fix for warning 'WARNING: Ignoring unknown variable globalCircleQuali…
Browse files Browse the repository at this point in the history
…ty.'
  • Loading branch information
Sebi committed Feb 8, 2016
1 parent d735c19 commit 4e0768a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Chamfer.scad
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,7 @@ module chamferCylinder(height, radius, radius2=undef, chamferHeight = 1, angle =
*
* @return The number of segments for the circle
*/
function circleSegments(r, quality = -1.0) = (r * PI * 4 + 40) * ((quality >= 0.0) ? quality : (globalCircleQuality == undef) ? 1.0 : globalCircleQuality);
function circleSegments(r, quality = -1.0) = (r * PI * 4 + 40) * ((quality >= 0.0) ? quality : globalCircleQuality);

// set global quality to 1.0, can be overridden by user
globalCircleQuality = 1.0;

0 comments on commit 4e0768a

Please sign in to comment.