From 04ce14ca906e8e76e9a6e9aee492c0c0b787c2d0 Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 5 Sep 2023 19:50:13 +0800 Subject: [PATCH] FIX: crash when support spacing set to 0 Jira: STUDIO-4339 Change-Id: Ic9198e21fbaa8992cc08628aefa8673ba82194b3 --- src/libslic3r/TreeSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/TreeSupport.cpp b/src/libslic3r/TreeSupport.cpp index 379cfc044..a650fb1b5 100644 --- a/src/libslic3r/TreeSupport.cpp +++ b/src/libslic3r/TreeSupport.cpp @@ -1587,7 +1587,7 @@ void TreeSupport::generate_toolpaths() else if (layer_id > 0 && need_infill && m_support_params.base_fill_pattern != ipLightning) { std::shared_ptr filler_support = std::shared_ptr(Fill::new_from_type(m_support_params.base_fill_pattern)); filler_support->set_bounding_box(bbox_object); - filler_support->spacing = object_config.support_base_pattern_spacing.value * support_density;// constant spacing to align support infill lines + filler_support->spacing = support_flow.spacing(); filler_support->angle = Geometry::deg2rad(object_config.support_angle.value); // allow infill-only mode if support is thick enough (so min_wall_count is 0);