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

@ -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));
}
}
}
}