fix excessive retractions (mostly in belt mode)
This commit is contained in:
parent
6f4afa0cbe
commit
c534ff2fe1
2 changed files with 3 additions and 2 deletions
|
|
@ -628,7 +628,8 @@
|
|||
coast: firstLayer ? 0 : coastDist,
|
||||
extrude: pref(opt.extrude, shellMult),
|
||||
onfirst: function(firstPoint) {
|
||||
if (startPoint.distTo2D(firstPoint) > retractDist) {
|
||||
let from = lastOut ? lastOut.point.sub(offset) : startPoint;
|
||||
if (from.distTo2D(firstPoint) > retractDist) {
|
||||
retract();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@
|
|||
// output seek to start point between mesh slices if previous data
|
||||
printPoint = print.slicePrintPath(
|
||||
slice,
|
||||
isBelt ? newPoint(-wtb.w, wtb.d * 2, 0) : printPoint.sub(offset),
|
||||
slice.belt && slice.belt.touch ? newPoint(-wtb.w, wtb.d * 2, 0) : printPoint.sub(offset),
|
||||
offset,
|
||||
layerout,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue