mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 05:54:03 -06:00
New top-infill-extrusion-width option
This commit is contained in:
parent
36d24ccb0b
commit
97e864699e
7 changed files with 23 additions and 4 deletions
|
@ -200,10 +200,11 @@ sub init_extruders {
|
|||
my $region = $self->regions->[$region_id];
|
||||
|
||||
# per-role extruders and flows
|
||||
for (qw(perimeter infill)) {
|
||||
for (qw(perimeter infill top_infill)) {
|
||||
my $extruder_name = $_ eq 'top_infill' ? 'infill' : $_;
|
||||
$region->extruders->{$_} = ($self->regions_count > 1)
|
||||
? $self->extruders->[$extruder_mapping{$region_id}]
|
||||
: $self->extruders->[$self->config->get("${_}_extruder")-1];
|
||||
: $self->extruders->[$self->config->get("${extruder_name}_extruder")-1];
|
||||
$region->flows->{$_} = $region->extruders->{$_}->make_flow(
|
||||
width => $self->config->get("${_}_extrusion_width") || $self->config->extrusion_width,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue