SPE-2627: Pass information if the perimeter is a loop or not into the GCodeGenerator::extrude_smooth_path(). (#13753)

This commit is contained in:
Lukáš Hejl 2024-12-17 17:31:51 +01:00 committed by Lukas Matena
parent 8976250fb9
commit 8fc4e241d3

View File

@ -3102,7 +3102,7 @@ std::string GCodeGenerator::extrude_perimeters(
// Apply the small perimeter speed.
if (perimeter.extrusion_entity->length() <= SMALL_PERIMETER_LENGTH)
speed = m_config.small_perimeter_speed.get_abs_value(m_config.perimeter_speed);
gcode += this->extrude_smooth_path(perimeter.smooth_path, true, comment_perimeter, speed, perimeter.wipe_offset);
gcode += this->extrude_smooth_path(perimeter.smooth_path, perimeter.extrusion_entity->is_loop(), comment_perimeter, speed, perimeter.wipe_offset);
this->m_travel_obstacle_tracker.mark_extruded(
perimeter.extrusion_entity, print_instance.object_layer_to_print_id, print_instance.instance_id
);