mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 04:09:18 +08:00
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:
parent
966fd37ea7
commit
a1a2a31e77
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user