From 619bc4012d29adc13d80e2f4bfe1a74daa3cf3ef Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 5 Mar 2017 02:13:00 +0100 Subject: [PATCH] Allow to express gap_fill_speed as % over infill_speed --- lib/Slic3r/GUI/Tab.pm | 2 +- xs/src/libslic3r/PrintConfig.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Slic3r/GUI/Tab.pm b/lib/Slic3r/GUI/Tab.pm index 2d2db52e7..c69bd30d8 100644 --- a/lib/Slic3r/GUI/Tab.pm +++ b/lib/Slic3r/GUI/Tab.pm @@ -610,10 +610,10 @@ sub build { $optgroup->append_single_option_line('infill_speed'); $optgroup->append_single_option_line('solid_infill_speed'); $optgroup->append_single_option_line('top_solid_infill_speed'); + $optgroup->append_single_option_line('gap_fill_speed'); $optgroup->append_single_option_line('support_material_speed'); $optgroup->append_single_option_line('support_material_interface_speed'); $optgroup->append_single_option_line('bridge_speed'); - $optgroup->append_single_option_line('gap_fill_speed'); } { my $optgroup = $page->new_optgroup('Speed for non-print moves'); diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp index 571b42a73..daf49f1d0 100644 --- a/xs/src/libslic3r/PrintConfig.cpp +++ b/xs/src/libslic3r/PrintConfig.cpp @@ -490,9 +490,10 @@ PrintConfigDef::PrintConfigDef() def = this->add("gap_fill_speed", coFloat); def->label = "Gap fill"; def->category = "Speed"; - def->tooltip = "Speed for filling gaps. Since these are usually single lines you might want to use a low speed for better sticking. Set zero for auto."; - def->sidetext = "mm/s"; - def->cli = "gap-fill-speed=f"; + def->tooltip = "Speed for filling gaps. Since these are usually single lines you might want to use a low speed for better sticking. If expressed as percentage (for example: 80%) it will be calculated on the infill speed setting above. Set zero for auto."; + def->sidetext = "mm/s or %"; + def->cli = "gap-fill-speed=s"; + def->ratio_over = "infill_speed"; def->min = 0; def->default_value = new ConfigOptionFloat(20);