From 20916e23628d9ed70cb311945a3c1f5750f3722e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 16 Oct 2020 07:48:05 +0200 Subject: [PATCH] Disable filed with max detour length when avoid crossing perimeters is disabled --- src/slic3r/GUI/ConfigManipulation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/ConfigManipulation.cpp b/src/slic3r/GUI/ConfigManipulation.cpp index 845dc1c0b..d23f938f6 100644 --- a/src/slic3r/GUI/ConfigManipulation.cpp +++ b/src/slic3r/GUI/ConfigManipulation.cpp @@ -312,6 +312,9 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config) for (auto el : { "wipe_tower_x", "wipe_tower_y", "wipe_tower_width", "wipe_tower_rotation_angle", "wipe_tower_bridging", "wipe_tower_no_sparse_layers", "single_extruder_multi_material_priming" }) toggle_field(el, have_wipe_tower); + + bool have_avoid_crossing_perimeters = config->opt_bool("avoid_crossing_perimeters"); + toggle_field("avoid_crossing_perimeters_max_detour", have_avoid_crossing_perimeters); } void ConfigManipulation::update_print_sla_config(DynamicPrintConfig* config, const bool is_global_config/* = false*/)