From e5576cc9a7df4a27df45c5b84e496a689f84916f Mon Sep 17 00:00:00 2001 From: K Hodson Date: Mon, 6 Feb 2023 00:01:39 -0700 Subject: [PATCH] Divide by zero error when divx and divy are 0 --- gridfinity-rebuilt-bins.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/gridfinity-rebuilt-bins.scad b/gridfinity-rebuilt-bins.scad index fcde484..101c57a 100644 --- a/gridfinity-rebuilt-bins.scad +++ b/gridfinity-rebuilt-bins.scad @@ -74,6 +74,7 @@ div_base_y = 0; color("tomato") { gridfinityInit(gridx, gridy, height(gridz, gridz_define, enable_lip, enable_zsnap), height_internal, length) { + if (divx > 0 && divy > 0) cutEqual(n_divx = divx, n_divy = divy, style_tab = style_tab, enable_scoop = enable_scoop); } gridfinityBase(gridx, gridy, length, div_base_x, div_base_y, style_hole);