mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 23:46:30 +02:00
_box_assembly() fix for corners = 0.
This commit is contained in:
@@ -28,7 +28,7 @@ assembly("box") {
|
|||||||
|
|
||||||
t = sheet_thickness(box_sheets(type));
|
t = sheet_thickness(box_sheets(type));
|
||||||
|
|
||||||
for(corner = [0 : corners - 1]) {
|
for(corner = [0 : 1 : corners - 1]) {
|
||||||
x = [-1,1,1,-1][corner];
|
x = [-1,1,1,-1][corner];
|
||||||
y = [-1,-1,1,1][corner];
|
y = [-1,-1,1,1][corner];
|
||||||
translate([x * (box_width(type) / 2 + 25 * exploded()), y * (box_depth(type) / 2 + 25 * exploded())])
|
translate([x * (box_width(type) / 2 + 25 * exploded()), y * (box_depth(type) / 2 + 25 * exploded())])
|
||||||
|
Reference in New Issue
Block a user