fix excessive retraction and anti-backlash in sparse support. fix process settings reload

This commit is contained in:
Stewart Allen 2020-04-11 21:26:00 -04:00
commit 621eb7e900
2 changed files with 3 additions and 2 deletions

View file

@ -743,12 +743,12 @@ let gs_kiri_print = exports;
addOutput(preout, p2, fill * (dist / thinWall), fillSpeed, extruder); addOutput(preout, p2, fill * (dist / thinWall), fillSpeed, extruder);
} else { } else {
// retract if dist trigger or crosses a slice top polygon // retract if dist trigger or crosses a slice top polygon
if (dist > retractDist && (zhop || intersectsTop(startPoint, p1))) { if (!fast && dist > retractDist && (zhop || intersectsTop(startPoint, p1))) {
retract(); retract();
} }
// anti-backlash on longer move // anti-backlash on longer move
if (antiBacklash && dist > retractDist) { if (!fast && antiBacklash && dist > retractDist) {
addOutput(preout, p1.add({x:antiBacklash,y:-antiBacklash,z:0}), 0, moveSpeed, extruder); addOutput(preout, p1.add({x:antiBacklash,y:-antiBacklash,z:0}), 0, moveSpeed, extruder);
} }

View file

@ -1634,6 +1634,7 @@ self.kiri.copyright = exports.COPYRIGHT;
if (!load) return; if (!load) return;
settings.process = clone(load);
settings.process.processName = name; settings.process.processName = name;
settings.cproc[mode] = name; settings.cproc[mode] = name;