Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsupermerill <merill@fr.fr>2021-12-01 22:33:00 +0300
committersupermerill <merill@fr.fr>2021-12-02 16:50:53 +0300
commit004d57f0509a5006266b6208b18f5684f82f63bc (patch)
tree95822d0651d9d707977bf983aabc7e02efbd8674
parent0c49de940e41de42fafec23a77a65e50ab63cc00 (diff)
infill_first also modifiable if sparse infill
supermerill/SuperSlicer#1971
-rw-r--r--src/slic3r/GUI/ConfigManipulation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp
index 1aff59ca0..bfb9fe014 100644
--- a/src/slic3r/GUI/ConfigManipulation.cpp
+++ b/src/slic3r/GUI/ConfigManipulation.cpp
@@ -375,9 +375,11 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
bool has_solid_infill = has_top_solid_infill || has_bottom_solid_infill || (have_infill && (config->opt_int("solid_infill_every_layers") > 0 || config->opt_float("solid_infill_below_area") > 0));
// solid_infill_extruder uses the same logic as in Print::extruders()
for (auto el : { "top_fill_pattern", "bottom_fill_pattern", "solid_fill_pattern", "enforce_full_fill_volume", "external_infill_margin", "bridged_infill_margin",
- "infill_first", "solid_infill_extruder", "solid_infill_extrusion_width", "solid_infill_speed" })
+ "solid_infill_extruder", "solid_infill_extrusion_width", "solid_infill_speed" })
toggle_field(el, has_solid_infill);
+ toggle_field("infill_first", (has_solid_infill || have_infill));
+
for (auto el : { "fill_angle", "fill_angle_increment", "bridge_angle", "infill_extrusion_width",
"infill_speed" })
toggle_field(el, have_infill || has_solid_infill);