Set negative values to retraction in the filament change script.

Fixes #4114
This commit is contained in:
Diego Prado Gesto 2018-07-24 10:48:52 +02:00
parent 62d1cdf0e1
commit 296b74b032

View File

@ -58,10 +58,10 @@ class FilamentChange(Script):
color_change = "M600"
if initial_retract is not None and initial_retract > 0.:
color_change = color_change + (" E%.2f" % initial_retract)
color_change = color_change + (" E-%.2f" % initial_retract)
if later_retract is not None and later_retract > 0.:
color_change = color_change + (" L%.2f" % later_retract)
color_change = color_change + (" L-%.2f" % later_retract)
color_change = color_change + " ; Generated by FilamentChange plugin"