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.
This commit is contained in:
Ghostkeeper 2020-04-09 11:22:05 +02:00
parent d9649dc3dd
commit 9b997d421b
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

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