fixes #9. dup point detection was broken
This commit is contained in:
parent
9ff0eb8c99
commit
e3ad319292
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ var gs_kiri_print = exports;
|
||||||
*/
|
*/
|
||||||
function addOutput(array, point, emit, speed, tool) {
|
function addOutput(array, point, emit, speed, tool) {
|
||||||
// drop duplicates (usually intruced by bisections)
|
// drop duplicates (usually intruced by bisections)
|
||||||
if (lastPoint && point.x == lastPoint.x && point.y == lastPoint.y && lastEmit == emit) {
|
if (lastPoint && point.x == lastPoint.x && point.y == lastPoint.y && point.z == lastPoint.z && lastEmit == emit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lastPoint = point;
|
lastPoint = point;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue