another attempt at retraction fix

This commit is contained in:
Stewart Allen 2021-03-11 17:24:44 -05:00
commit e27aabc860
2 changed files with 4 additions and 1 deletions

View file

@ -534,6 +534,7 @@
wipeDist = process.outputRetractWipe || 0,
isBelt = device.bedBelt,
startClone = startPoint.clone(),
seedPoint = opt.seedPoint || startPoint,
z = slice.z,
lastPoly;
@ -628,10 +629,11 @@
coast: firstLayer ? 0 : coastDist,
extrude: pref(opt.extrude, shellMult),
onfirst: function(firstPoint) {
let from = lastOut ? lastOut.point.sub(offset) : startPoint;
let from = seedPoint || startPoint;
if (from.distTo2D(firstPoint) > retractDist) {
retract();
}
seedPoint = null;
}
});
lastPoly = slice.lastPoly = poly;

View file

@ -411,6 +411,7 @@
offset,
layerout,
{
seedPoint: printPoint.sub(offset),
params, // range parameters
first: slice.index === 0,
support: slice.widget.support,