Browse Source

Keep current_e updated even if not finding retractions

Otherwise the new E is never going to be lower than the current E. I don't know how this ever worked then.

Contributes to issue CURA-7351.
Ghostkeeper 4 years ago
parent
commit
9b997d421b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/PostProcessingPlugin/scripts/RetractContinue.py

+ 1 - 0
plugins/PostProcessingPlugin/scripts/RetractContinue.py

@@ -42,6 +42,7 @@ class RetractContinue(Script):
                         continue
                     new_e = self.getValue(line, "E")
                     if new_e >= current_e:  # Not a retraction.
+                        current_e = new_e
                         continue
                     # A retracted travel move may consist of multiple commands, due to combing.
                     # This continues retracting over all of these moves and only unretracts at the end.