Don't check the temperature of multi filament for multi toolhead printers (#3649)

do not check the temperature of multi filaments for multi toolhead printers
This commit is contained in:
Dylan 2024-01-21 12:34:00 +08:00 committed by GitHub
parent 82ead12cde
commit e92be73894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1043,6 +1043,7 @@ boost::regex regex_g92e0 { "^[ \\t]*[gG]92[ \\t]*[eE](0(\\.0*)?|\\.0+)[ \\t]*(;.
StringObjectException Print::validate(StringObjectException *warning, Polygons* collison_polygons, std::vector<std::pair<Polygon, float>>* height_polygons) const
{
std::vector<unsigned int> extruders = this->extruders();
unsigned int nozzles = m_config.nozzle_diameter.size();
if (m_objects.empty())
return {std::string()};
@ -1050,7 +1051,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
if (extruders.empty())
return { L("No extrusions under current settings.") };
if (extruders.size() > 1 && m_config.print_sequence != PrintSequence::ByObject) {
if (nozzles < 2 && extruders.size() > 1 && m_config.print_sequence != PrintSequence::ByObject) {
auto ret = check_multi_filament_valid(*this);
if (!ret.string.empty())
{