diff options
author | supermerill <merill@free.fr> | 2021-11-06 19:02:14 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2021-11-06 23:19:59 +0300 |
commit | 038bfa59a3d8e2829fa768532792559160d5df02 (patch) | |
tree | 9db30d6206884ac7502ef8838ea9740fca2f7012 /src | |
parent | 57c82dbe72a32afea7ee3a98c780131412a8347f (diff) |
Don't split travel for deceleration if there is no need for.
supermerill/SuperSlicer#1560
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/GCode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |