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,
|
wipeDist = process.outputRetractWipe || 0,
|
||||||
isBelt = device.bedBelt,
|
isBelt = device.bedBelt,
|
||||||
startClone = startPoint.clone(),
|
startClone = startPoint.clone(),
|
||||||
|
seedPoint = opt.seedPoint || startPoint,
|
||||||
z = slice.z,
|
z = slice.z,
|
||||||
lastPoly;
|
lastPoly;
|
||||||
|
|
||||||
|
|
@ -628,10 +629,11 @@
|
||||||
coast: firstLayer ? 0 : coastDist,
|
coast: firstLayer ? 0 : coastDist,
|
||||||
extrude: pref(opt.extrude, shellMult),
|
extrude: pref(opt.extrude, shellMult),
|
||||||
onfirst: function(firstPoint) {
|
onfirst: function(firstPoint) {
|
||||||
let from = lastOut ? lastOut.point.sub(offset) : startPoint;
|
let from = seedPoint || startPoint;
|
||||||
if (from.distTo2D(firstPoint) > retractDist) {
|
if (from.distTo2D(firstPoint) > retractDist) {
|
||||||
retract();
|
retract();
|
||||||
}
|
}
|
||||||
|
seedPoint = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
lastPoly = slice.lastPoly = poly;
|
lastPoly = slice.lastPoly = poly;
|
||||||
|
|
|
||||||
|
|
@ -411,6 +411,7 @@
|
||||||
offset,
|
offset,
|
||||||
layerout,
|
layerout,
|
||||||
{
|
{
|
||||||
|
seedPoint: printPoint.sub(offset),
|
||||||
params, // range parameters
|
params, // range parameters
|
||||||
first: slice.index === 0,
|
first: slice.index === 0,
|
||||||
support: slice.widget.support,
|
support: slice.widget.support,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue