Commit 9b9c3cd9 authored by Guillaume Seguin's avatar Guillaume Seguin

Flatten travels list

parent b8f6da60
...@@ -306,8 +306,8 @@ class GcodeModel(Model): ...@@ -306,8 +306,8 @@ class GcodeModel(Model):
has_movement = True has_movement = True
current_pos = (gline.current_x, gline.current_y, gline.current_z) current_pos = (gline.current_x, gline.current_y, gline.current_z)
if not gline.extruding: if not gline.extruding:
travel_vertex_list.append(prev_pos) travel_vertex_list.extend(prev_pos)
travel_vertex_list.append(current_pos) travel_vertex_list.extend(current_pos)
prev_is_extruding = False prev_is_extruding = False
else: else:
gline_color = self.movement_color(gline) gline_color = self.movement_color(gline)
......
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