Skip to content

Commit

Permalink
Bugfix: Extra infill support lines could be mispositioned by up to 1 …
Browse files Browse the repository at this point in the history
…line_width
  • Loading branch information
Hello1024 committed Jul 30, 2024
1 parent 8d0e2ae commit 99e57a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2262,7 +2262,7 @@ void addExtraLinesToSupportSurfacesAbove(
for (auto it = copy.begin(); it != copy.end(); ++it, ++orig_it)
{
if (it > copy.begin())
*orig_it += normal(*(it) - *(it - 1), infill_line_width / 2);
*orig_it += normal(*(it - 1) - *(it), infill_line_width / 2);
if (it < copy.end() - 1)
*orig_it += normal(*(it + 1) - *(it), infill_line_width / 2);
}
Expand Down

0 comments on commit 99e57a8

Please sign in to comment.