Commit 41d9a49b authored by Guillaume Seguin's avatar Guillaume Seguin

More cleanup

parent bc5877cf
......@@ -100,11 +100,11 @@ class GcodePlater(Plater):
f.write(l.raw + "\n")
# Find the current real position
for i in xrange(len(model.gcode) - 1, -1, -1):
if model.gcode.lines[i].is_move:
gline = model.gcode.lines[i]
last_real_position = [- trans[0] + gline.current_x,
if gline.is_move:
last_real_position = (- trans[0] + gline.current_x,
- trans[1] + gline.current_y,
- trans[2] + gline.current_z]
- trans[2] + gline.current_z)
break
print _("Exported merged G-Codes to %s") % name
......
Markdown is supported
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