resurrect wipe as a post-retraction option

This commit is contained in:
Stewart Allen 2021-02-09 15:38:05 -05:00
commit 7ab7701f8c
6 changed files with 22 additions and 12 deletions

View file

@ -207,7 +207,6 @@
// console.log({double_retract: zhop});
return;
}
// console.log({retract:zhop});
retracted = retDist;
moveTo({e:-retracted}, retSpeed, `e-retract ${retDist}`);
if (zhop) moveTo({z:zpos + zhop}, seekMMM, "z-hop start");

View file

@ -403,9 +403,13 @@
first: slice.index === 0,
support: slice.widget.support,
onBelt: slice.onbelt,
pretract: () => {
pretract: (wipeDist) => {
if (lastLayer && lastLayer.length) {
lastLayer.last().retract = true;
let lastOut = lastLayer.last();
lastOut.retract = true;
if (wipeDist && lastLayer.lastPoly && lastOut.point) {
print.addOutput(lastLayer, lastOut.point.followTo(lastLayer.lastPoly.center(true), wipeDist));
}
}
}
}