clamp single trace to z top/bottom
This commit is contained in:
parent
f59a2ea021
commit
8bca0a949a
2 changed files with 16 additions and 2 deletions
|
|
@ -454,6 +454,7 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
|
|||
if (isMove && deltaXY <= shortCut && deltaZ <= 0 && !lasering) {
|
||||
// but only if the z plunge is not too far
|
||||
if (absDeltaZ < 0.01 || (tolerance > 0 && absDeltaZ <= tolerance)) {
|
||||
if (debug) console.log('shortcut', { deltaXY, deltaZ, shortCut });
|
||||
emit = 1;
|
||||
} else
|
||||
// otherwise move over before descending
|
||||
|
|
|
|||
Loading…
Reference in a new issue