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.
This commit is contained in:
Vovodroid 2024-07-28 18:26:34 +03:00 committed by GitHub
parent 529c44d8e3
commit 83a9b2513a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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