add 3 point registration holes. fix animation + dwell
This commit is contained in:
parent
4ac0f69f61
commit
345ad8f27d
4 changed files with 25 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue