fix some slider issues

This commit is contained in:
Stewart Allen 2020-11-09 00:21:35 -05:00
commit d6b06e8ac4
3 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@
print.render = KIRI.driver.FDM.prepareRender(print.output, progress => {
update(0.5 + progress * 0.5);
}, { thin: true, print: 0, move: 0x003366 });
}, { thin: true, print: 0, move: 0x003366, speed: false });
return print.render;
};

View file

@ -385,6 +385,7 @@
const opts = options || {};
const tools = opts.tools || {};
const thin = opts.thin || false;
const ckspeed = opts.speed !== false;
const moveColor = opts.move >= 0 ? opts.move : 0xaaaaaa;
const printColor = opts.print >= 0 ? opts.print : 0x777700;
const layers = [];
@ -420,7 +421,7 @@
}
if (lastOut) {
if (out.emit) {
if (!lastOut.emit || out.speed !== lastOut.speed) {
if (!lastOut.emit || (ckspeed && out.speed !== lastOut.speed)) {
current = newPolygon().setOpen();
current.push(lastOut.point);
current.color = hsv2rgb({h:out.speed/maxspd, s:1, v:1}, true);