Commit 70b5ca46 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

last position is a float

parent d9f87ad0
......@@ -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]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment