mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:28:59 +08:00
Don't detect retractions if E is almost equal, but rounding errors
Contributes to issue CURA-7351.
This commit is contained in:
parent
9b997d421b
commit
d5166030d7
@ -41,7 +41,7 @@ class RetractContinue(Script):
|
||||
if not self.getValue(line, "E"): # Either None or 0: Not a retraction then.
|
||||
continue
|
||||
new_e = self.getValue(line, "E")
|
||||
if new_e >= current_e: # Not a retraction.
|
||||
if new_e - current_e >= -0.0001: # Not a retraction. Account for floating point rounding errors.
|
||||
current_e = new_e
|
||||
continue
|
||||
# A retracted travel move may consist of multiple commands, due to combing.
|
||||
|
Loading…
x
Reference in New Issue
Block a user