From 67f5b7ab14b0898ed2cd04c1070d806602ac3699 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 9 Aug 2013 14:33:20 +0200 Subject: [PATCH] Require --default-acceleration when other acceleration settings are used --- lib/Slic3r/Config.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index ddf3fe6e3..a48f2f0f4 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -1385,6 +1385,11 @@ sub validate { die "Invalid value for --extrusion-multiplier\n" if defined first { $_ <= 0 } @{$self->extrusion_multiplier}; + # --default-acceleration + die "Invalid zero value for --default-acceleration when using other acceleration settings\n" + if ($self->perimeter_acceleration || $self->infill_acceleration || $self->bridge_acceleration || $self->first_layer_acceleration) + && !$self->default_acceleration; + # general validation, quick and dirty foreach my $opt_key (keys %$Options) { my $opt = $Options->{$opt_key};