diff --git a/examples/qr_coder.scad b/examples/qr_coder.scad index b525d0ae..97ad2427 100644 --- a/examples/qr_coder.scad +++ b/examples/qr_coder.scad @@ -95,7 +95,7 @@ module cube_character(head_size) { body(); translate([0, head_size * 0.75]) - connector_peg(peg_radius, spacing = spacing, heads = true); + connector_peg(peg_radius, spacing = spacing, ends = true); } // refactored from https://www.thingiverse.com/thing:258542 diff --git a/src/part/connector_peg.scad b/src/part/connector_peg.scad index 124ac9ef..8265fdad 100644 --- a/src/part/connector_peg.scad +++ b/src/part/connector_peg.scad @@ -1,4 +1,4 @@ -module connector_peg(radius, height, spacing = 0.5, void = false, heads = false) { +module connector_peg(radius, height, spacing = 0.5, void = false, ends = false) { lip_r = radius * 1.2; r_diff = lip_r - radius; @@ -46,7 +46,7 @@ module connector_peg(radius, height, spacing = 0.5, void = false, heads = false) } } - if(heads) { + if(ends) { translate([0, 0, h]) { head(); mirror([0, 0, 1]) head();