Left pulleys on BOM when show_pulleys true.

This commit is contained in:
Martin Budden 2021-03-06 16:32:36 +00:00
parent 769cb44207
commit d80fc5709e
2 changed files with 5 additions and 6 deletions

View File

@ -23,7 +23,7 @@ include <../vitamins/screws.scad>
include <../vitamins/stepper_motors.scad> include <../vitamins/stepper_motors.scad>
include <../vitamins/washers.scad> include <../vitamins/washers.scad>
include <../utils/core_xy_belts.scad> include <../utils/core_xy.scad>
module coreXY_belts_test() { module coreXY_belts_test() {

View File

@ -109,12 +109,11 @@ module coreXY_half(type, size, pos, separation_y = 0, x_gap = 0, plain_idler_off
p6 = [ pos.x - size.x / 2, -size.y / 2 + pos.y - separation_y / 2 ]; p6 = [ pos.x - size.x / 2, -size.y / 2 + pos.y - separation_y / 2 ];
module show_pulleys(show_pulleys) {// Allows the pulley colour to be set for debugging module show_pulleys(show_pulleys) {// Allows the pulley colour to be set for debugging
not_on_bom() if (is_list(show_pulleys))
if (is_list(show_pulleys)) color(show_pulleys)
color(show_pulleys)
children();
else if (show_pulleys)
children(); children();
else if (show_pulleys)
children();
} }
show_pulleys(show_pulleys) { show_pulleys(show_pulleys) {