mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 01:45:55 +08:00
fix over zero cycling
This commit is contained in:
parent
e8d8ec1990
commit
13b1ef0075
@ -2111,7 +2111,7 @@ priv::ProjectionDistances priv::choose_best_distance(
|
|||||||
// Negative iteration inside polygon
|
// Negative iteration inside polygon
|
||||||
do {
|
do {
|
||||||
uint32_t nxt_index = (act_index == first_index) ?
|
uint32_t nxt_index = (act_index == first_index) ?
|
||||||
last_index : (act_index - 1);
|
(last_index-1) : (act_index - 1);
|
||||||
// When iterate negative it must be split to parts
|
// When iterate negative it must be split to parts
|
||||||
// and can't iterate in circle
|
// and can't iterate in circle
|
||||||
assert(nxt_index != index);
|
assert(nxt_index != index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user