mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-06 08:36:08 +08: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
@ -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…
x
Reference in New Issue
Block a user