diff --git a/primitives.scad b/primitives.scad index 44424ea..2499665 100644 --- a/primitives.scad +++ b/primitives.scad @@ -46,9 +46,9 @@ module square(size=1, center, rounding=0, chamfer=0, anchor, spin=0) { size = is_num(size)? [size,size] : point2d(size); anchor = get_anchor(anchor, center, FRONT+LEFT, FRONT+LEFT); - pts = square(size=size, rounding=rounding, chamfer=chamfer, center=false); + pts = square(size=size, rounding=rounding, chamfer=chamfer, center=true); attachable(anchor,spin, two_d=true, size=size) { - translate(-size/2) polygon(pts); + translate(-size/2) polygon(move(size/2,p=pts)); // Extraneous translation works around fine grid quantizing. children(); } } diff --git a/version.scad b/version.scad index c36cb13..bb1aa27 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,174]; +BOSL_VERSION = [2,0,175]; // Section: BOSL Library Version Functions