Fix regression causing default extrusion width to be ignored. #1958

This commit is contained in:
Alessandro Ranellucci 2014-04-25 19:39:27 +02:00
parent 924cb2e558
commit 7ac0095018
6 changed files with 21 additions and 14 deletions

View file

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