From a1a2a31e77356c3cac801df96bfb5e24b541a407 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Fri, 29 Dec 2017 20:12:34 -0600 Subject: [PATCH] Use the default extrusion width for the first loaded object if the configured perimeter width and first layer width is 0. Fixes #4245 --- xs/src/libslic3r/Print.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index 96f522152..c1fe435a8 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -762,6 +762,7 @@ Print::brim_flow() const { ConfigOptionFloatOrPercent width = this->config.first_layer_extrusion_width; if (width.value == 0) width = this->regions.front()->config.perimeter_extrusion_width; + if (width.value == 0) width = this->objects.front()->config.extrusion_width; /* We currently use a random region's perimeter extruder. While this works for most cases, we should probably consider all of the perimeter @@ -788,6 +789,7 @@ Print::skirt_flow() const { ConfigOptionFloatOrPercent width = this->config.first_layer_extrusion_width; if (width.value == 0) width = this->regions.front()->config.perimeter_extrusion_width; + if (width.value == 0) width = this->objects.front()->config.extrusion_width; /* We currently use a random object's support material extruder. While this works for most cases, we should probably consider all of the support material