Commit 8855fe3f authored by Guillaume Seguin's avatar Guillaume Seguin

Change the meaning of gcoder.Line.extruding to "is positively extruding"

parent f4491115
...@@ -258,10 +258,10 @@ class GCode(object): ...@@ -258,10 +258,10 @@ class GCode(object):
continue continue
if line.is_move: if line.is_move:
if line.relative_e: if line.relative_e:
line.extruding = line.e != 0 line.extruding = line.e > 0
total_e += line.e total_e += line.e
else: else:
line.extruding = line.e != cur_e line.extruding = line.e > cur_e
total_e += line.e - cur_e total_e += line.e - cur_e
cur_e = line.e cur_e = line.e
max_e = max(max_e, total_e) max_e = max(max_e, total_e)
......
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