1
1

LineArt: Fix adjacent edge sorting.

The sorting end element should be `start+len` not `start+len-1`.
This commit is contained in:
2022-05-23 16:08:53 +08:00
parent f4a01c8a8b
commit f4101ba4a1

View File

@@ -21,5 +21,5 @@ static bool cmp_adjacent_items(const LineartAdjacentEdge &p1, const LineartAdjac
void lineart_sort_adjacent_items(LineartAdjacentEdge *ai, int length)
{
blender::parallel_sort(ai, ai + length - 1, cmp_adjacent_items);
blender::parallel_sort(ai, ai + length, cmp_adjacent_items);
}