From 716f4a9b5c4fe889f6c06788cd28c0f728a96b77 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 19 May 2023 20:29:54 +0800 Subject: [PATCH] FIX: fix a bbox compute error issue when using multiple height ranges Change-Id: I8a5f044a9817b946eb1321f98b96fe5d1d4bcdf1 (cherry picked from commit 045ee2537cac64160d53b2aa2ce2b96ed63a6d86) --- src/libslic3r/PrintApply.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/PrintApply.cpp b/src/libslic3r/PrintApply.cpp index 45e0dd932..9804dd45c 100644 --- a/src/libslic3r/PrintApply.cpp +++ b/src/libslic3r/PrintApply.cpp @@ -581,7 +581,7 @@ static void transformed_its_bboxes_in_z_ranges( if (p2->z() <= z_range.first || p1->z() >= z_range.second) { // Out of this slab. } else if (p1->z() < z_range.first) { - if (p1->z() > z_range.second) { + if (p2->z() > z_range.second) { // Two intersections. float zspan = p2->z() - p1->z(); float t1 = (z_range.first - p1->z()) / zspan;