From b73e1b7999e53a2f3e53ca1a50926e51d8eb9d26 Mon Sep 17 00:00:00 2001 From: Ian Bassi Date: Tue, 13 Oct 2026 21:52:32 -0300 Subject: [PATCH] Remove an unused variable from the segmented region cutter interlocking_cut_width has not been read since the interlocking depth started cutting every other layer by the depth directly. --- src/libslic3r/MultiMaterialSegmentation.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libslic3r/MultiMaterialSegmentation.cpp b/src/libslic3r/MultiMaterialSegmentation.cpp index 19dbee88dc..dc3af43de4 100644 --- a/src/libslic3r/MultiMaterialSegmentation.cpp +++ b/src/libslic3r/MultiMaterialSegmentation.cpp @@ -1196,7 +1196,6 @@ static void cut_segmented_layers(const std::vector &input_exp const std::function &throw_on_cancel_callback) { BOOST_LOG_TRIVIAL(debug) << "Print object segmentation - cutting segmented layers in parallel - begin"; - const float interlocking_cut_width = interlocking_depth > 0.f ? std::max(cut_width - interlocking_depth, 0.f) : 0.f; tbb::parallel_for(tbb::blocked_range(0, segmented_regions.size()), [&segmented_regions, &input_expolygons, &cut_width, &interlocking_depth, &throw_on_cancel_callback](const tbb::blocked_range &range) { for (size_t layer_idx = range.begin(); layer_idx < range.end(); ++layer_idx) {