diff options
author | enricoturri1966 <enricoturri@seznam.cz> | 2021-10-12 12:49:51 +0300 |
---|---|---|
committer | enricoturri1966 <enricoturri@seznam.cz> | 2021-10-12 12:49:51 +0300 |
commit | 19572068a50bd188005bc49004a31fe243cf4e90 (patch) | |
tree | 1384d1f95e8f2dc5250802f104adc42b90dab386 /src/libslic3r | |
parent | ac414e226f94fe92fc9f4fed8ca12e03448a797e (diff) |
Revert of e28ebf9386c5e9482b1c5859adbf6860aedb6f85
Diffstat (limited to 'src/libslic3r')
-rw-r--r-- | src/libslic3r/GCode/GCodeProcessor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index c5471911a..9c90535c4 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -2671,12 +2671,12 @@ void GCodeProcessor::process_G1(const GCodeReader::GCodeLine& line) const Vec3f curr_pos(m_end_position[X], m_end_position[Y], m_end_position[Z]); const Vec3f new_pos = m_result.moves.back().position - m_extruder_offsets[m_extruder_id]; const std::optional<Vec3f> first_vertex = m_seams_detector.get_first_vertex(); -// // the threshold value = 0.0625f == 0.25 * 0.25 is arbitrary, we may find some smarter condition later -// if ((new_pos - *first_vertex).squaredNorm() < 0.0625f) { + // the threshold value = 0.0625f == 0.25 * 0.25 is arbitrary, we may find some smarter condition later + if ((new_pos - *first_vertex).squaredNorm() < 0.0625f) { set_end_position(0.5f * (new_pos + *first_vertex)); store_move_vertex(EMoveType::Seam); set_end_position(curr_pos); -// } + } m_seams_detector.activate(false); } |