mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-10-31 22:07:16 +00:00
Merge pull request #173 from coderjo/main
Don't add holes if style_hole is 0 even if only_corners is set
This commit is contained in:
commit
fc51ba875e
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ module gridfinityBase(gx, gy, l, dx, dy, style_hole, off=0, final_cut=true, only
|
||||||
translate([0,0,-1])
|
translate([0,0,-1])
|
||||||
rounded_rectangle(xx+0.005, yy+0.005, h_base+h_bot/2*10, r_fo1+0.001);
|
rounded_rectangle(xx+0.005, yy+0.005, h_base+h_bot/2*10, r_fo1+0.001);
|
||||||
|
|
||||||
if(only_corners) {
|
if((style_hole != 0) && (only_corners)) {
|
||||||
difference(){
|
difference(){
|
||||||
pattern_linear(gx/dbnx, gy/dbny, dbnx*l, dbny*l)
|
pattern_linear(gx/dbnx, gy/dbny, dbnx*l, dbny*l)
|
||||||
block_base(gx, gy, l, dbnx, dbny, 0, off);
|
block_base(gx, gy, l, dbnx, dbny, 0, off);
|
||||||
|
|
Loading…
Reference in a new issue