mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 06:21:45 +08:00
Fix crash with a single support point
This commit is contained in:
parent
d23f9d7674
commit
f90d62c771
@ -498,7 +498,8 @@ std::vector<size_t> non_duplicate_suppt_indices(const PtIndex &index,
|
|||||||
!to_remove[i_closest];
|
!to_remove[i_closest];
|
||||||
});
|
});
|
||||||
|
|
||||||
if ((suppts[i].pos - suppts[closest_idx].pos).norm() < eps)
|
if (closest_idx < suppts.size() &&
|
||||||
|
(suppts[i].pos - suppts[closest_idx].pos).norm() < eps)
|
||||||
to_remove[i] = true;
|
to_remove[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user