From 70b5ca466664342a0f02f35e9c26fe2f2241ef04 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Mon, 24 Aug 2015 21:26:04 -0400 Subject: [PATCH] last position is a float --- js/cam/processes/GCodeExporter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/cam/processes/GCodeExporter.js b/js/cam/processes/GCodeExporter.js index a9f0843b..fd5ff5ba 100644 --- a/js/cam/processes/GCodeExporter.js +++ b/js/cam/processes/GCodeExporter.js @@ -73,16 +73,16 @@ define(['underscore', 'cam', 'lattice', 'three'], function(_, cam, lattice, THRE GCodeExporter.prototype._goXYZ = function(x, y, z, command){ if (x !== null) { - x = "X"+parseFloat(x).toFixed(3); this.postPosition.x = x; + x = "X"+parseFloat(x).toFixed(3); } if (y !== null) { - y = "Y"+parseFloat(y).toFixed(3); this.postPosition.y = y; + y = "Y"+parseFloat(y).toFixed(3); } if (z !== null) { - z = "Z"+parseFloat(z).toFixed(3); this.postPosition.z = z; + z = "Z"+parseFloat(z).toFixed(3); } if (command) return this.addLine(command, [x,y,z]); return this.addLine("G01", [x,y,z]); -- GitLab