Use the default extrusion width for the first loaded object if the configured perimeter width and first layer width is 0.

Fixes #4245
This commit is contained in:
Joseph Lenox 2017-12-29 20:12:34 -06:00
parent 966fd37ea7
commit a1a2a31e77

View File

@ -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