From 201cf90b97cca2ab7edc59021fa572a1dba067dd Mon Sep 17 00:00:00 2001 From: supermerill Date: Sun, 22 Aug 2021 17:49:25 +0200 Subject: [PATCH] disable clearance check if set to 0 supermerill/SuperSlicer#1446 --- src/libslic3r/Print.cpp | 2 ++ src/libslic3r/PrintConfig.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index 899341c19..7b43e6c54 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -1280,6 +1280,8 @@ bool Print::has_skirt() const static inline bool sequential_print_horizontal_clearance_valid(const Print &print) { + if (print.config().extruder_clearance_radius == 0) + return true; Polygons convex_hulls_other; std::map map_model_object_to_convex_hull; const double dist_grow = PrintConfig::min_object_distance(&print.default_region_config()) * 2; diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 9b064aea5..f11ab4473 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -1113,7 +1113,8 @@ void PrintConfigDef::init_fff_params() def->tooltip = L("Set this to the clearance radius around your extruder. " "If the extruder is not centered, choose the largest value for safety. " "This setting is used to check for collisions and to display the graphical preview " - "in the plater."); + "in the plater." + "\nSet to 0 to disable clearance checking."); def->sidetext = L("mm"); def->min = 0; def->mode = comExpert;