add 3 point registration holes. fix animation + dwell

This commit is contained in:
Stewart Allen 2020-12-15 12:27:48 -05:00
commit 345ad8f27d
4 changed files with 25 additions and 7 deletions

View file

@ -372,6 +372,11 @@ self.kiri.loader.push(function() {
const id = toolID;
if (last) {
const lp = last.point, np = next.point;
// dwell ops have no point
if (!np) {
setTimeout(() => { renderPath(send) }, 0);
return;
}
const dx = np.x - lp.x, dy = np.y - lp.y, dz = np.z - lp.z;
// skip moves that are closer than resolution
if (Math.sqrt(dx*dx +dy*dy + dz*dz) < rez) {