PCBs now drawn before components so that transparent LEDs draw correctly.

This commit is contained in:
Chris Palmer 2020-11-13 09:24:15 +00:00
parent 9a0bad4e61
commit 0c9ae8d60c
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 152 KiB

View File

@ -1021,8 +1021,6 @@ module pcb(type) { //! Draw specified PCB
for(part = pcb_accessories(type)) for(part = pcb_accessories(type))
vitamin(part); vitamin(part);
pcb_components(type);
color(pcb_colour(type)) linear_extrude(t) difference() { color(pcb_colour(type)) linear_extrude(t) difference() {
if(Len(pcb_polygon(type))) if(Len(pcb_polygon(type)))
polygon(pcb_polygon(type)); polygon(pcb_polygon(type));
@ -1076,6 +1074,8 @@ module pcb(type) { //! Draw specified PCB
circle(d = 2); circle(d = 2);
} }
} }
pcb_components(type);
} }
module pcb_spacer(screw, height, wall = 1.8, taper = 0) { //! Generate STL for PCB spacer module pcb_spacer(screw, height, wall = 1.8, taper = 0) { //! Generate STL for PCB spacer