Merge pull request #4116 from Ultimaker/fix_filament_change_script

Set negative values to retraction in the filament change script
This commit is contained in:
alekseisasin 2018-07-24 13:37:27 +02:00 committed by GitHub
commit 41194fceed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,10 +58,10 @@ class FilamentChange(Script):
color_change = "M600" color_change = "M600"
if initial_retract is not None and initial_retract > 0.: 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.: 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" color_change = color_change + " ; Generated by FilamentChange plugin"