From 038bfa59a3d8e2829fa768532792559160d5df02 Mon Sep 17 00:00:00 2001 From: supermerill Date: Sat, 6 Nov 2021 17:02:14 +0100 Subject: [PATCH] Don't split travel for deceleration if there is no need for. supermerill/SuperSlicer#1560 --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index a600c0eb5..0e18211f4 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -3949,7 +3949,7 @@ std::string GCode::_before_extrude(const ExtrusionPath &path, const std::string acceleration = std::min(max_acceleration, m_config.infill_acceleration.get_abs_value(acceleration)); } } - if (travel_acceleration <= acceleration) { + if (travel_acceleration <= acceleration || travel_acceleration == 0 || acceleration == 0) { m_writer.set_acceleration((uint32_t)floor(acceleration + 0.5)); // go to first point of extrusion path (stop at midpoint to let us set the decel speed) if (!m_last_pos_defined || m_last_pos != path.first_point()) {