Commit 43ee4cdb authored by Guillaume Seguin's avatar Guillaume Seguin

Don't display travels in gcode plater

parent 1902744c
...@@ -60,6 +60,7 @@ class GcodePlater(Plater): ...@@ -60,6 +60,7 @@ class GcodePlater(Plater):
gcode = gcoder.GCode(open(filename, "rU"), gcode = gcoder.GCode(open(filename, "rU"),
get_home_pos(self.build_dimensions)) get_home_pos(self.build_dimensions))
model = actors.GcodeModel() model = actors.GcodeModel()
model.display_travels = False
generator = model.load_data(gcode) generator = model.load_data(gcode)
generator_output = generator.next() generator_output = generator.next()
while generator_output is not None: while generator_output is not None:
......
...@@ -301,6 +301,8 @@ class GcodeModel(Model): ...@@ -301,6 +301,8 @@ class GcodeModel(Model):
color_current = (0, 0.9, 1.0, 1.0) color_current = (0, 0.9, 1.0, 1.0)
color_current_printed = (0.1, 0.4, 0, 1.0) color_current_printed = (0.1, 0.4, 0, 1.0)
display_travels = True
use_vbos = True use_vbos = True
loaded = False loaded = False
......
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