Fixed typo which broke export of toolpaths to obj file

This commit is contained in:
enricoturri1966 2021-09-01 09:54:59 +02:00
parent 4a1c42b3d5
commit 95c05aae3b

View file

@ -1100,7 +1100,7 @@ void GCodeViewer::export_toolpaths_to_obj(const char* filename) const
// save vertices to file
fprintf(fp, "\n# vertices\n");
for (const Vec3f& v : out_vertices) {
fprintf(fp, "v %g %g %g\n", v.x(), v.y(), v.x());
fprintf(fp, "v %g %g %g\n", v.x(), v.y(), v.z());
}
// save normals to file