if either grid size is 0, we should probably not render the grid

This commit is contained in:
Marian Rudzynski 2024-11-30 22:20:24 -08:00
parent e1e5dcc49e
commit 7c217f8691

View file

@ -156,6 +156,7 @@ module gridfinityBaseplate(grid_size_bases, length, min_size_mm, sp, hole_option
difference() {
union() {
// Baseplate itself
if (grid_size.x > 0 && grid_size.y > 0) {
pattern_linear(grid_size.x, grid_size.y, length) {
// Single Baseplate piece
difference() {
@ -190,6 +191,7 @@ module gridfinityBaseplate(grid_size_bases, length, min_size_mm, sp, hole_option
}
}
}
}
// Padding
if (is_padding_needed) {