mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2025-01-08 15:19:43 +00:00
if either grid size is 0, we should probably not render the grid
This commit is contained in:
parent
e1e5dcc49e
commit
7c217f8691
1 changed files with 29 additions and 27 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue