Skip to content

Commit 4e0768a

Browse files
author
Sebi
committed
fix for warning 'WARNING: Ignoring unknown variable globalCircleQuality.'
1 parent d735c19 commit 4e0768a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Chamfer.scad

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,7 @@ module chamferCylinder(height, radius, radius2=undef, chamferHeight = 1, angle =
129129
*
130130
* @return The number of segments for the circle
131131
*/
132-
function circleSegments(r, quality = -1.0) = (r * PI * 4 + 40) * ((quality >= 0.0) ? quality : (globalCircleQuality == undef) ? 1.0 : globalCircleQuality);
132+
function circleSegments(r, quality = -1.0) = (r * PI * 4 + 40) * ((quality >= 0.0) ? quality : globalCircleQuality);
133+
134+
// set global quality to 1.0, can be overridden by user
135+
globalCircleQuality = 1.0;

0 commit comments

Comments
 (0)