fix black line rendering in CAM mode

This commit is contained in:
Stewart Allen 2020-07-04 13:09:57 -04:00
commit 7722f4e42a
2 changed files with 3 additions and 3 deletions

View file

@ -1176,7 +1176,7 @@
break; break;
} }
if (top.traces) { if (top.traces) {
layer.poly(top.traces, 0x0, true, null); layer.poly(top.traces, 0x010101, true, null);
} }
}); });
@ -1985,7 +1985,7 @@
}; };
function printRender(print) { function printRender(print) {
return KIRI.driver.FDM.printRender(print, {aslines: true}); return KIRI.driver.FDM.printRender(print, {aslines: true, color: 0x010101});
} }
})(); })();

View file

@ -1347,7 +1347,7 @@
((rgb.g * 0xff) << 8) | ((rgb.g * 0xff) << 8) |
((rgb.b * 0xff) << 0); ((rgb.b * 0xff) << 0);
if (opt.aslines) { if (opt.aslines) {
emits.poly(poly, color, false, true); emits.poly(poly, opt.color || color, false, true);
} else { } else {
emits.noodle_open(poly, off - 0.02, color, 0x0, poly.getZ()); emits.noodle_open(poly, off - 0.02, color, 0x0, poly.getZ());
} }