mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-15 15:08:08 +08:00
Fix regression introduced by max width check
This commit is contained in:
parent
5c02bfd310
commit
b43ead06fe
@ -480,6 +480,7 @@ our $Options = {
|
|||||||
cli => 'first-layer-extrusion-width=s',
|
cli => 'first-layer-extrusion-width=s',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
default => '200%',
|
default => '200%',
|
||||||
|
ratio_over => 'first_layer_height',
|
||||||
},
|
},
|
||||||
'perimeter_extrusion_width' => {
|
'perimeter_extrusion_width' => {
|
||||||
label => 'Perimeters',
|
label => 'Perimeters',
|
||||||
@ -489,6 +490,7 @@ our $Options = {
|
|||||||
type => 'f',
|
type => 'f',
|
||||||
aliases => [qw(perimeters_extrusion_width)],
|
aliases => [qw(perimeters_extrusion_width)],
|
||||||
default => 0,
|
default => 0,
|
||||||
|
ratio_over => 'layer_height',
|
||||||
},
|
},
|
||||||
'infill_extrusion_width' => {
|
'infill_extrusion_width' => {
|
||||||
label => 'Infill',
|
label => 'Infill',
|
||||||
@ -497,6 +499,7 @@ our $Options = {
|
|||||||
cli => 'infill-extrusion-width=s',
|
cli => 'infill-extrusion-width=s',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
default => 0,
|
default => 0,
|
||||||
|
ratio_over => 'layer_height',
|
||||||
},
|
},
|
||||||
'solid_infill_extrusion_width' => {
|
'solid_infill_extrusion_width' => {
|
||||||
label => 'Solid infill',
|
label => 'Solid infill',
|
||||||
@ -505,6 +508,7 @@ our $Options = {
|
|||||||
cli => 'solid-infill-extrusion-width=s',
|
cli => 'solid-infill-extrusion-width=s',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
default => 0,
|
default => 0,
|
||||||
|
ratio_over => 'layer_height',
|
||||||
},
|
},
|
||||||
'top_infill_extrusion_width' => {
|
'top_infill_extrusion_width' => {
|
||||||
label => 'Top solid infill',
|
label => 'Top solid infill',
|
||||||
@ -513,6 +517,7 @@ our $Options = {
|
|||||||
cli => 'top-infill-extrusion-width=s',
|
cli => 'top-infill-extrusion-width=s',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
default => 0,
|
default => 0,
|
||||||
|
ratio_over => 'layer_height',
|
||||||
},
|
},
|
||||||
'support_material_extrusion_width' => {
|
'support_material_extrusion_width' => {
|
||||||
label => 'Support material',
|
label => 'Support material',
|
||||||
@ -521,6 +526,7 @@ our $Options = {
|
|||||||
cli => 'support-material-extrusion-width=s',
|
cli => 'support-material-extrusion-width=s',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
default => 0,
|
default => 0,
|
||||||
|
ratio_over => 'layer_height',
|
||||||
},
|
},
|
||||||
'bridge_flow_ratio' => {
|
'bridge_flow_ratio' => {
|
||||||
label => 'Bridge flow ratio',
|
label => 'Bridge flow ratio',
|
||||||
@ -1477,7 +1483,7 @@ sub validate {
|
|||||||
my $max_nozzle_diameter = max(@{ $self->nozzle_diameter });
|
my $max_nozzle_diameter = max(@{ $self->nozzle_diameter });
|
||||||
die "Invalid extrusion width (too large)\n"
|
die "Invalid extrusion width (too large)\n"
|
||||||
if defined first { $_ > 10 * $max_nozzle_diameter }
|
if defined first { $_ > 10 * $max_nozzle_diameter }
|
||||||
map $self->get("${_}_extrusion_width"),
|
map $self->get_value("${_}_extrusion_width"),
|
||||||
qw(perimeter infill solid_infill top_infill support_material first_layer);
|
qw(perimeter infill solid_infill top_infill support_material first_layer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user