From c6c7dd12daa4449634fcadcce6414c9d3f822d5f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 21 Sep 2012 16:42:40 +0200 Subject: [PATCH] Silently ignore threads > 1 on non-threaded perls --- lib/Slic3r/Config.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 312352312..b018a5c93 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -944,6 +944,9 @@ sub set { $opt_key =~ s/^bottom_layer_speed$/first_layer_speed/; $value = $value =~ /^\d+(?:\.\d+)?$/ && $value != 0 ? ($value*100) . "%" : 0; } + if ($opt_key eq 'threads' && !$Slic3r::have_threads) { + $value = 1; + } if (!exists $Options->{$opt_key}) { $opt_key = +(grep { $Options->{$_}{aliases} && grep $_ eq $opt_key, @{$Options->{$_}{aliases}} } keys %$Options)[0]