From 159ca3f65e6b35c3a5d16c6a517c87fbe63c99af Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci <aar@cpan.org> Date: Sat, 19 May 2012 23:18:29 +0200 Subject: [PATCH] Accept --threads 1 on non-threaded perls too --- lib/Slic3r/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 0c996890d..64f9d78d9 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -538,7 +538,7 @@ sub validate { die "Invalid value for --threads\n" if defined $Slic3r::threads && $Slic3r::threads < 1; die "Your perl wasn't built with multithread support\n" - if defined $Slic3r::threads && !$Slic3r::have_threads; + if defined $Slic3r::threads && $Slic3r::threads > 1 && !$Slic3r::have_threads; # --layer-height die "Invalid value for --layer-height\n"