From c0a74780cb4a8caeef9e4cd5961fd21758cda427 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 11 Jan 2014 14:48:13 +0100 Subject: [PATCH] The ratio_over parameter was missing in the definition of first_layer_extrusion_width --- lib/Slic3r/Config.pm | 2 +- xs/src/PrintConfig.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 26ced03d7..383b19bea 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -324,7 +324,7 @@ sub validate { my $max_nozzle_diameter = max(@{ $self->nozzle_diameter }); die "Invalid extrusion width (too large)\n" if defined first { $_ > 10 * $max_nozzle_diameter } - map $self->get("${_}_extrusion_width"), + map $self->get_value("${_}_extrusion_width"), qw(perimeter infill solid_infill top_infill support_material first_layer); } diff --git a/xs/src/PrintConfig.hpp b/xs/src/PrintConfig.hpp index 3cd58085a..a00ffa665 100644 --- a/xs/src/PrintConfig.hpp +++ b/xs/src/PrintConfig.hpp @@ -285,9 +285,10 @@ class PrintConfigDef Options["first_layer_extrusion_width"].type = coFloatOrPercent; Options["first_layer_extrusion_width"].label = "First layer"; - Options["first_layer_extrusion_width"].tooltip = "Set this to a non-zero value to set a manual extrusion width for first layer. You can use this to force fatter extrudates for better adhesion. If expressed as percentage (for example 120%) if will be computed over layer height."; + Options["first_layer_extrusion_width"].tooltip = "Set this to a non-zero value to set a manual extrusion width for first layer. You can use this to force fatter extrudates for better adhesion. If expressed as percentage (for example 120%) if will be computed over first layer height."; Options["first_layer_extrusion_width"].sidetext = "mm or % (leave 0 for default)"; Options["first_layer_extrusion_width"].cli = "first-layer-extrusion-width=s"; + Options["first_layer_extrusion_width"].ratio_over = "first_layer_height"; Options["first_layer_height"].type = coFloatOrPercent; Options["first_layer_height"].label = "First layer height";