mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
fix: revert "FIX: fix the out range of array of seam algining"
This reverts commit f100c10fa8aa0460d3ff11723c6a2504b6b69bba. Change-Id: Ice36f6f41d5a50a7244d8f09960876d9539802d8
This commit is contained in:
parent
b27a9e27ce
commit
b13928b615
1 changed files with 2 additions and 2 deletions
|
@ -1236,8 +1236,8 @@ void SeamPlacer::align_seam_points(const PrintObject *po, const SeamPlacerImpl::
|
|||
SeamCandidate adjust_point = seamcandiate[index];
|
||||
// BBS. pick projection point as seam point
|
||||
if (seam_string[index].second != adjust_point.perimeter.seam_index) {
|
||||
int prev_index = seam_string[index].second == adjust_point.perimeter.start_index ? adjust_point.perimeter.end_index - 1 : seam_string[index].second - 1;
|
||||
int next_index = seam_string[index].second == adjust_point.perimeter.end_index - 1 ? adjust_point.perimeter.start_index : seam_string[index].second + 1;
|
||||
int prev_index = seam_string[index].second == adjust_point.perimeter.start_index ? adjust_point.perimeter.end_index : seam_string[index].second - 1;
|
||||
int next_index = seam_string[index].second == adjust_point.perimeter.end_index ? adjust_point.perimeter.start_index : seam_string[index].second + 1;
|
||||
SeamCandidate prev_point = layers[seam_string[index].first].points[prev_index];
|
||||
SeamCandidate next_point = layers[seam_string[index].first].points[next_index];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue