From 2129c09fb940b4418edb2be4e3a9935f7bd91919 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 21 Sep 2019 10:13:46 +0800 Subject: [PATCH] rename param --- examples/qr_coder.scad | 2 +- src/part/connector_peg.scad | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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();