Commit 26152c2d authored by Guillaume Seguin's avatar Guillaume Seguin

Display travels in gcodeplater if no extrusion

parent 06d131ec
......@@ -90,7 +90,8 @@ class GcodePlater(Plater):
gcode = gcoder.GCode(open(filename, "rU"),
get_home_pos(self.build_dimensions))
model = actors.GcodeModel()
model.display_travels = False
if gcode.filament_length > 0:
model.display_travels = False
generator = model.load_data(gcode)
generator_output = generator.next()
while generator_output is not None:
......
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