Commit 54bdf39f authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup gcoder.Gcode._preprocess_layers

parent 8855fe3f
...@@ -375,10 +375,7 @@ class GCode(object): ...@@ -375,10 +375,7 @@ class GCode(object):
count_noe = self.filament_length <= 0 count_noe = self.filament_length <= 0
for line in self.lines: for line in self.lines:
if not line.is_move and line.command != "G92" and line.command != "G28": if line.is_move and (line.extruding or count_noe):
continue
if line.is_move:
if line.e or count_noe:
if line.current_x is not None: if line.current_x is not None:
xmin = min(xmin, line.current_x) xmin = min(xmin, line.current_x)
xmax = max(xmax, line.current_x) xmax = max(xmax, line.current_x)
......
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