mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-11-26 02:08:01 +00:00
Merge branch 'main' into screw-together
This commit is contained in:
commit
4e0afaaf31
1 changed files with 3 additions and 4 deletions
|
@ -59,9 +59,8 @@ gridfinityBaseplate(gridx, gridy, length, distancex, distancey, style_plate, ena
|
|||
|
||||
module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) {
|
||||
|
||||
assert(gridx > 0 || dx > 0, "Must have positive x grid amount!");
|
||||
assert(gridy > 0 || dy > 0, "Must have positive y grid amount!");
|
||||
|
||||
assert(gridx > 0 || dix > 0, "Must have positive x grid amount!");
|
||||
assert(gridy > 0 || diy > 0, "Must have positive y grid amount!");
|
||||
|
||||
gx = gridx == 0 ? floor(dix/length) : gridx;
|
||||
gy = gridy == 0 ? floor(diy/length) : gridy;
|
||||
|
|
Loading…
Reference in a new issue