From e3d345aa1724939efe1a531c3dc6782c6afd8676 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Mon, 13 Dec 2021 11:18:43 +0100 Subject: [PATCH] Fix of PrusaSlicer crashes when using fuzzy skin and setting 0 for values #7468 Fuzzy skin will be disabled for regions with with fuzzy_skin_point_dist < 0.01 or fuzzy_skin_thickness.value < 0.001 as the first one creates excessive long extrusions while the second one does not modify the perimeters. --- src/libslic3r/PrintObject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 3d6eb21e5..31d948db9 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -1607,6 +1607,8 @@ PrintRegionConfig region_config_from_model_volume(const PrintRegionConfig &defau config.fill_density.value = 0; else config.fill_density.value = std::min(config.fill_density.value, 100.); + if (config.fuzzy_skin.value != FuzzySkinType::None && (config.fuzzy_skin_point_dist.value < 0.01 || config.fuzzy_skin_thickness.value < 0.001)) + config.fuzzy_skin.value = FuzzySkinType::None; return config; }