diff --git a/plugins/PostProcessingPlugin/scripts/FilamentChange.py b/plugins/PostProcessingPlugin/scripts/FilamentChange.py index 19150ff861..a053dd8ac8 100644 --- a/plugins/PostProcessingPlugin/scripts/FilamentChange.py +++ b/plugins/PostProcessingPlugin/scripts/FilamentChange.py @@ -91,9 +91,7 @@ class FilamentChange(Script): color_change = "M600" - if firmware_config: - color_change = color_change + " ; Generated by FilamentChange plugin\n" - else: + if not firmware_config: if initial_retract is not None and initial_retract > 0.: color_change = color_change + (" E%.2f" % initial_retract) @@ -106,7 +104,7 @@ class FilamentChange(Script): if y_pos is not None: color_change = color_change + (" Y%.2f" % y_pos) - color_change = color_change + " ; Generated by FilamentChange plugin\n" + color_change = color_change + " ; Generated by FilamentChange plugin\n" layer_targets = layer_nums.split(",") if len(layer_targets) > 0: