Prevent --extrusion-multiplier <= 0. #1183

This commit is contained in:
Alessandro Ranellucci 2013-05-31 12:45:18 +02:00
parent 5c7dd2cf78
commit 5f06cea821

View File

@ -1328,6 +1328,10 @@ sub validate {
if $self->extruder_clearance_radius <= 0;
die "Invalid value for --extruder-clearance-height\n"
if $self->extruder_clearance_height <= 0;
# --extrusion-multiplier
die "Invalid value for --extrusion-multiplier\n"
if defined first { $_ <= 0 } @{$self->extrusion_multiplier};
}
sub replace_options {