From 215e845c31889f92f78e8be1d9ee52f6209a8082 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 21 Dec 2021 16:57:35 +0100 Subject: [PATCH] Fixed FDM support generator for object layers lower than minimum layer height enabled for an extruder. --- src/libslic3r/SupportMaterial.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/SupportMaterial.cpp b/src/libslic3r/SupportMaterial.cpp index 1f3ecfa12ac..67bd2639b4e 100644 --- a/src/libslic3r/SupportMaterial.cpp +++ b/src/libslic3r/SupportMaterial.cpp @@ -336,6 +336,8 @@ PrintObjectSupportMaterial::PrintObjectSupportMaterial(const PrintObject *object m_support_params.support_layer_height_min = 1000000.; for (auto lh : m_print_config->min_layer_height.values) m_support_params.support_layer_height_min = std::min(m_support_params.support_layer_height_min, std::max(0.01, lh)); + for (auto layer : m_object->layers()) + m_support_params.support_layer_height_min = std::min(m_support_params.support_layer_height_min, std::max(0.01, layer->height)); if (m_object_config->support_material_interface_layers.value == 0) { // No interface layers allowed, print everything with the base support pattern.