From 09c4a08cb5d543822614dc41b9c10065aad14f28 Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Wed, 26 Oct 2022 11:55:57 +0800 Subject: [PATCH] FIX: Prompting flush options not take effect when disable wipe tower Change-Id: Id1195880ebe6021136446dc02ea46224aff4e801 (cherry picked from commit 7edd7f389c97acad8baa0bb809914d3aeeb75fd8) --- src/libslic3r/PrintConfig.cpp | 9 ++++++--- src/slic3r/GUI/ConfigManipulation.cpp | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 1117583ef9..06fae3401b 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -2813,21 +2813,24 @@ void PrintConfigDef::init_fff_params() def->label = L("Flush into objects' infill"); def->tooltip = L("Purging after filament change will be done inside objects' infills. " "This may lower the amount of waste and decrease the print time. " - "If the walls are printed with transparent filament, the mixed color infill will be seen outside"); + "If the walls are printed with transparent filament, the mixed color infill will be seen outside. " + "It will not take effect, unless the prime tower is enabled."); def->set_default_value(new ConfigOptionBool(false)); def = this->add("flush_into_support", coBool); def->category = L("Flush options"); def->label = L("Flush into objects' support"); def->tooltip = L("Purging after filament change will be done inside objects' support. " - "This may lower the amount of waste and decrease the print time"); + "This may lower the amount of waste and decrease the print time. " + "It will not take effect, unless the prime tower is enabled."); def->set_default_value(new ConfigOptionBool(true)); def = this->add("flush_into_objects", coBool); def->category = L("Flush options"); def->label = L("Flush into this object"); def->tooltip = L("This object will be used to purge the nozzle after a filament change to save filament and decrease the print time. " - "Colours of the objects will be mixed as a result"); + "Colours of the objects will be mixed as a result. " + "It will not take effect, unless the prime tower is enabled."); def->set_default_value(new ConfigOptionBool(false)); //BBS diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp index 552a33a4c1..59ae45012b 100644 --- a/src/slic3r/GUI/ConfigManipulation.cpp +++ b/src/slic3r/GUI/ConfigManipulation.cpp @@ -586,6 +586,9 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co for (auto el : { "prime_tower_width", "prime_volume", "prime_tower_brim_width"}) toggle_line(el, have_prime_tower); + for (auto el : {"flush_into_infill", "flush_into_support", "flush_into_objects"}) + toggle_field(el, have_prime_tower); + bool have_avoid_crossing_perimeters = config->opt_bool("reduce_crossing_wall"); toggle_line("max_travel_detour_distance", have_avoid_crossing_perimeters);