From b6f40aed3820515a0e431212bf9479c3a02e7c37 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Wed, 9 Oct 2024 22:31:36 +0800 Subject: [PATCH] FIX: seq_print: use extruder_clearance_max_radius for all the cases github issue: https://github.com/bambulab/BambuStudio/issues/4804 Change-Id: Ia9d14e795057c8dc8ec009cdd55892483388885b --- src/libslic3r/Print.cpp | 2 +- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 601260bad..bd5b6f556 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -534,7 +534,7 @@ StringObjectException Print::sequential_print_clearance_valid(const Print &print bool all_objects_are_short = print.is_all_objects_are_short(); // Shrink the extruder_clearance_radius a tiny bit, so that if the object arrangement algorithm placed the objects // exactly by satisfying the extruder_clearance_radius, this test will not trigger collision. - float obj_distance = all_objects_are_short ? scale_(0.5*MAX_OUTER_NOZZLE_RADIUS-0.1) : scale_(0.5*print.config().extruder_clearance_radius.value-0.1); + float obj_distance = all_objects_are_short ? scale_(0.5*MAX_OUTER_NOZZLE_RADIUS-0.1) : scale_(0.5*print.config().extruder_clearance_max_radius.value-0.1); for (const PrintObject *print_object : print.objects()) { assert(! print_object->model_object()->instances.empty()); diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a6d9ec8c2..a9e8a2f6c 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5307,7 +5307,7 @@ void GLCanvas3D::update_sequential_clearance() if (all_objects_are_short) shrink_factor = scale_(0.5 * MAX_OUTER_NOZZLE_RADIUS - 0.1); else - shrink_factor = static_cast(scale_(0.5 * fff_print()->config().extruder_clearance_radius.value - EPSILON)); + shrink_factor = static_cast(scale_(0.5 * fff_print()->config().extruder_clearance_max_radius.value - EPSILON)); double mitter_limit = scale_(0.1); m_sequential_print_clearance.m_hull_2d_cache.reserve(m_model->objects.size());