Revert "reverse fill path"

This reverts commit 821eb8ebe9.
This commit is contained in:
Wang YB
2024-01-19 17:59:03 +08:00
parent bb3884101f
commit e0dd4753c0

View File

@@ -2993,10 +2993,6 @@ Polylines FillGrid::fill_surface(const Surface *surface, const FillParams &param
{ { 0.f, 0.f }, { float(M_PI / 2.), 0.f } }, { { 0.f, 0.f }, { float(M_PI / 2.), 0.f } },
polylines_out)) polylines_out))
BOOST_LOG_TRIVIAL(error) << "FillGrid::fill_surface() failed to fill a region."; BOOST_LOG_TRIVIAL(error) << "FillGrid::fill_surface() failed to fill a region.";
//w18 reverse fill path
if (this->layer_id % 2 == 1)
for (int i = 0; i < polylines_out.size(); i++)
std::reverse(polylines_out[i].begin(), polylines_out[i].end());
return polylines_out; return polylines_out;
} }