Commit 369d6da2 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix potential bug in excluder logic

parent b2d50f23
...@@ -422,7 +422,7 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -422,7 +422,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
return gline return gline
else: else:
# Check if next move will be excluded too and if it will emit an absolute E set # Check if next move will be excluded too and if it will emit an absolute E set
if self.is_excluded_move(next_gline) and next_gline.e != None and not next_gline.relative_e: if next_gline != None and self.is_excluded_move(next_gline) and next_gline.e != None and not next_gline.relative_e:
return None # nothing to do: next move will set absolute E if needed return None # nothing to do: next move will set absolute E if needed
else: # else, check if this is an extrusion move with non relative E and replace it else: # else, check if this is an extrusion move with non relative E and replace it
if gline.e != None and not gline.relative_e: if gline.e != None and not gline.relative_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