another attempt at retraction fix
This commit is contained in:
parent
c534ff2fe1
commit
e27aabc860
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -411,6 +411,7 @@
|
|||
offset,
|
||||
layerout,
|
||||
{
|
||||
seedPoint: printPoint.sub(offset),
|
||||
params, // range parameters
|
||||
first: slice.index === 0,
|
||||
support: slice.widget.support,
|
||||
|
|
|
|||
Loading…
Reference in a new issue