mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 19:05:54 +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 */)
|
Points collect_duplicates(Points pts /* Copy */)
|
||||||
{
|
{
|
||||||
std::stable_sort(pts.begin(), pts.end());
|
std::sort(pts.begin(), pts.end());
|
||||||
Points duplicits;
|
Points duplicits;
|
||||||
const Point *prev = &pts.front();
|
const Point *prev = &pts.front();
|
||||||
for (size_t i = 1; i < pts.size(); ++i) {
|
for (size_t i = 1; i < pts.size(); ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user