FIX: wrong flush volume when select filament or sync filament

1.Correct the wrong logic for support filament check

jira:STUDIO-13719

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ia0d5dfa210a4335ea2a6a5f5a97ba69fd136c720
(cherry picked from commit 75c75f83679937b1fcd2ef120ac83cc9a67f125b)
This commit is contained in:
xun.zhang
2025-07-30 21:19:08 +08:00
committed by Noisyfox
parent 40f8583440
commit b8bbb04527
3 changed files with 5 additions and 5 deletions

View File

@@ -7303,7 +7303,7 @@ bool has_filaments(const std::vector<string>& model_filaments) {
return false;
}
bool is_support_filament(int extruder_id)
bool is_support_filament(int extruder_id, bool strict_check)
{
auto &filament_presets = Slic3r::GUI::wxGetApp().preset_bundle->filament_presets;
auto &filaments = Slic3r::GUI::wxGetApp().preset_bundle->filaments;
@@ -7317,7 +7317,7 @@ bool is_support_filament(int extruder_id)
Slic3r::ConfigOptionBools *support_option = dynamic_cast<Slic3r::ConfigOptionBools *>(filament->config.option("filament_is_support"));
if (filament_type == "PETG" || filament_type == "PLA") {
if(!strict_check &&(filament_type == "PETG" || filament_type == "PLA")) {
std::vector<string> model_filaments;
if (filament_type == "PETG")
model_filaments.emplace_back("PLA");