fixes #53 b/c uglify optimization confuses chrome boolean expression evaluation
This commit is contained in:
parent
418ffdfbfa
commit
9e6508e4f6
1 changed files with 5 additions and 2 deletions
|
|
@ -385,8 +385,11 @@ var gs_kiri_print = exports;
|
|||
*/
|
||||
function addOutput(array, point, emit, speed, tool) {
|
||||
// drop duplicates (usually intruced by FDM bisections)
|
||||
if (lastPoint && point && point.x == lastPoint.x && point.y == lastPoint.y && point.z == lastPoint.z && lastEmit == emit) {
|
||||
return;
|
||||
if (lastPoint && point) {
|
||||
// nested due to uglify confusing browser
|
||||
if (point.x == lastPoint.x && point.y == lastPoint.y && point.z == lastPoint.z && lastEmit == emit) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
lastPoint = point;
|
||||
lastEmit = emit;
|
||||
|
|
|
|||
Loading…
Reference in a new issue