From 703f65c7bf23ad8b23803896fe52ca7a667b6577 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Mon, 15 Apr 2019 12:54:57 +0200 Subject: [PATCH] Fix of #1380 - Wrong estimated time when using extruder absolute coordinates --- src/libslic3r/GCodeTimeEstimator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCodeTimeEstimator.cpp b/src/libslic3r/GCodeTimeEstimator.cpp index 4b4e9f587..60d7a4cdf 100644 --- a/src/libslic3r/GCodeTimeEstimator.cpp +++ b/src/libslic3r/GCodeTimeEstimator.cpp @@ -38,7 +38,6 @@ static const std::string MOVE_TYPE_STR[Slic3r::GCodeTimeEstimator::Block::Num_Ty #endif // ENABLE_MOVE_STATS namespace Slic3r { - void GCodeTimeEstimator::Feedrates::reset() { feedrate = 0.0f; @@ -695,6 +694,8 @@ namespace Slic3r { set_axis_position(X, 0.0f); set_axis_position(Y, 0.0f); set_axis_position(Z, 0.0f); + if (get_e_local_positioning_type() == Absolute) + set_axis_position(E, 0.0f); set_additional_time(0.0f); @@ -715,7 +716,6 @@ namespace Slic3r { _blocks.clear(); } - void GCodeTimeEstimator::_calculate_time() { PROFILE_FUNC();