fix line group control

This commit is contained in:
Stewart Allen 2020-11-09 10:11:24 -05:00
commit 0c0046b1c5
2 changed files with 5 additions and 1 deletions

View file

@ -420,13 +420,17 @@
return;
}
if (lastOut) {
const op = out.point, lp = lastOut.point,
moved = (op.x !== lp.x) || (op.y !== lp.y) || (op.z !== lp.z);;
if (out.emit) {
// if (!moved) return;
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);
pushPrint(out.tool, current);
}
// current.color = hsv2rgb({h:out.speed/maxspd, s:1, v:1}, true);
current.push(out.point);
} else {
if (lastOut.emit) {