From 83a9b2513a4a998a6f5add9670ca0790860201fe Mon Sep 17 00:00:00 2001 From: Vovodroid Date: Sun, 28 Jul 2024 18:26:34 +0300 Subject: [PATCH] Reverse draft shield direction on even layers to reduce thermal stress. (#5789) * Reverse draft shield direction on even layers to reduce thermal stress and warping. * Use reverse() to make code clear. --- src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 693fd36b25..4659552c63 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -4574,6 +4574,8 @@ std::string GCode::extrude_loop(ExtrusionLoop loop, std::string description, dou // if spiral vase, we have to ensure that all contour are in the same orientation. loop.make_counter_clockwise(); } + if (loop.loop_role() == elrSkirt && (this->m_layer->id() % 2 == 1)) + loop.reverse(); // find the point of the loop that is closest to the current extruder position // or randomize if requested