fix rough move down on small deltaXY

This commit is contained in:
Stewart Allen 2023-12-11 16:24:45 -05:00
commit b0f1544559
2 changed files with 3 additions and 1 deletions

View file

@ -394,6 +394,8 @@ function prepEach(widget, settings, print, firstPoint, update) {
// new pos for plunge calc // new pos for plunge calc
deltaXY = 0; deltaXY = 0;
} }
} else if (isRough && deltaZ < 0) {
layerPush(point.clone().setZ(lastPoint.z), 0, 0, tool);
} }
} }

View file

@ -886,7 +886,7 @@ gapp.register("kiri.main", [], (root, exports) => {
} }
function switchMode(mode) { function switchMode(mode) {
setMode(mode, platform.update_size); setMode(mode, null, platform.update_size);
} }
function setMode(mode, lock, then) { function setMode(mode, lock, then) {