Don't add holes if style_hole is 0 even if only_corners is set

This commit is contained in:
Tracy Ward 2024-03-04 22:13:17 -05:00
parent fd4db5aa9f
commit d9d92db544

View file

@ -227,7 +227,7 @@ module gridfinityBase(gx, gy, l, dx, dy, style_hole, off=0, final_cut=true, only
translate([0,0,-1])
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(){
pattern_linear(gx/dbnx, gy/dbny, dbnx*l, dbny*l)
block_base(gx, gy, l, dbnx, dbny, 0, off);