fix tests

This commit is contained in:
PavelMikus 2022-12-07 12:51:03 +01:00 committed by Pavel Mikuš
parent 17304a6263
commit dd7777f648
3 changed files with 19 additions and 15 deletions

View file

@ -2919,7 +2919,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, const std::string_view de
bool variable_speed = false;
std::vector<ProcessedPoint> new_points{};
if (!this->on_first_layer() && is_perimeter(path.role())) {
if (this->m_config.overhangs && !this->on_first_layer() && is_perimeter(path.role())) {
new_points = m_extrusion_quality_estimator.estimate_extrusion_quality(path);
variable_speed = std::any_of(new_points.begin(), new_points.end(), [](const ProcessedPoint &p) { return p.speed_factor != 1.0; });
}