mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 00:45:55 +08:00
change stable_sort to sort(in this place it is better)
This commit is contained in:
parent
fe736291c7
commit
1fa532c624
@ -160,7 +160,7 @@ bool has_duplicate_points(std::vector<Point> &&pts)
|
||||
|
||||
Points collect_duplicates(Points pts /* Copy */)
|
||||
{
|
||||
std::stable_sort(pts.begin(), pts.end());
|
||||
std::sort(pts.begin(), pts.end());
|
||||
Points duplicits;
|
||||
const Point *prev = &pts.front();
|
||||
for (size_t i = 1; i < pts.size(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user