ENH: allow to print PETG with other filaments

and do not check temp when print by object

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I4a89b181df478cdb2fb925ab5fc7d9415059a1f6
This commit is contained in:
qing.zhang 2022-11-01 10:44:50 +08:00 committed by Lane.Wei
parent d0def61ca0
commit 8d71053b08
1 changed files with 2 additions and 2 deletions

View File

@ -785,7 +785,7 @@ static StringObjectException layered_print_cleareance_valid(const Print &print,
static std::map<std::string, bool> filament_is_high_temp { static std::map<std::string, bool> filament_is_high_temp {
{"PLA", false}, {"PLA", false},
{"PLA-CF", false}, {"PLA-CF", false},
{"PETG", true}, //{"PETG", true},
{"ABS", true}, {"ABS", true},
{"TPU", false}, {"TPU", false},
{"PA", true}, {"PA", true},
@ -832,7 +832,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
if (extruders.empty()) if (extruders.empty())
return { L("No extrusions under current settings.") }; return { L("No extrusions under current settings.") };
if (extruders.size() > 1) { if (extruders.size() > 1 && m_config.print_sequence != PrintSequence::ByObject) {
auto ret = check_multi_filament_valid(*this); auto ret = check_multi_filament_valid(*this);
if (!ret.string.empty()) if (!ret.string.empty())
return ret; return ret;