diff --git a/src/libslic3r/ShortestPath.cpp b/src/libslic3r/ShortestPath.cpp index df09df956e..449ff45b53 100644 --- a/src/libslic3r/ShortestPath.cpp +++ b/src/libslic3r/ShortestPath.cpp @@ -75,7 +75,7 @@ std::vector> chain_segments_greedy_constrained_reversals { // Just sort the end points so that the first point visited is closest to start_near. out.emplace_back(0, could_reverse_func(0) && start_near != nullptr && - (end_point_func(0, true) - *start_near).template cast().squaredNorm() < (end_point_func(0, false) - *start_near).template cast().squaredNorm()); + (end_point_func(0, false) - *start_near).template cast().squaredNorm() < (end_point_func(0, true) - *start_near).template cast().squaredNorm()); } else {