Fixes for rect(center=)

This commit is contained in:
Revar Desmera
2021-12-13 16:31:14 -08:00
parent aa109de9d7
commit f9c5dc2cb9
7 changed files with 24 additions and 18 deletions

View File

@@ -112,7 +112,7 @@ module rect(size=1, rounding=0, chamfer=0, anchor=CENTER, spin=0) {
children();
}
} else {
pts = rect(size=size, rounding=rounding, chamfer=chamfer, center=true);
pts = rect(size=size, rounding=rounding, chamfer=chamfer);
attachable(anchor, spin, two_d=true, path=pts) {
polygon(pts);
children();