Skip to content

Commit

Permalink
Minor optimization
Browse files Browse the repository at this point in the history
CURA-11100

Co-authored-by: Casper Lamboo <[email protected]>
  • Loading branch information
wawanbreton and casperlamboo authored Oct 9, 2023
1 parent c72500c commit edd9b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/PathOrderOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ class PathOrderOptimizer
for (const auto& [i, here] : **path.converted | ranges::views::enumerate)
{
const Point& next = (*path.converted)[(i + 1) % path.converted->size()];
coord_t segment_size = vSize(next - here);
const coord_t segment_size = vSize(next - here);
segments_sizes[i] = segment_size;
total_length += segment_size;
}
Expand Down

0 comments on commit edd9b39

Please sign in to comment.