Divide by zero error when divx and divy are 0

This commit is contained in:
K Hodson 2023-02-06 00:01:39 -07:00
parent c5e99d1298
commit e5576cc9a7
1 changed files with 1 additions and 0 deletions

View File

@ -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);