mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix regression causing default extrusion width to be ignored. #1958
This commit is contained in:
@@ -1006,7 +1006,7 @@ sub support_material_flow {
|
||||
# we use a bogus layer_height because we use the same flow for all
|
||||
# support material layers
|
||||
return Slic3r::Flow->new_from_width(
|
||||
width => $self->config->support_material_extrusion_width,
|
||||
width => $self->config->support_material_extrusion_width || $self->config->extrusion_width,
|
||||
role => $role,
|
||||
nozzle_diameter => $self->print->config->nozzle_diameter->[$extruder-1] // $self->print->config->nozzle_diameter->[0],
|
||||
layer_height => $self->config->layer_height,
|
||||
|
||||
@@ -11,7 +11,7 @@ has 'print' => (is => 'ro', required => 1, weak_ref => 1);
|
||||
has 'config' => (is => 'ro', default => sub { Slic3r::Config::PrintRegion->new});
|
||||
|
||||
sub flow {
|
||||
my ($self, $role, $layer_height, $bridge, $first_layer, $width) = @_;
|
||||
my ($self, $role, $layer_height, $bridge, $first_layer, $width, $object) = @_;
|
||||
|
||||
$bridge //= 0;
|
||||
$first_layer //= 0;
|
||||
@@ -35,6 +35,10 @@ sub flow {
|
||||
die "Unknown role $role";
|
||||
}
|
||||
}
|
||||
if ($config_width eq '0') {
|
||||
use XXX; ZZZ "Here" if !defined $object;
|
||||
$config_width = $object->config->extrusion_width;
|
||||
}
|
||||
|
||||
# get the configured nozzle_diameter for the extruder associated
|
||||
# to the flow role requested
|
||||
|
||||
Reference in New Issue
Block a user