Wrong logic on detecting use of % for support threshold. Fixes #3842.

This commit is contained in:
Joseph Lenox 2017-04-10 19:16:30 -05:00
parent ad83265927
commit 5cc2d346a2

View File

@ -96,7 +96,7 @@ sub contact_area {
# if user specified a custom angle threshold, convert it to radians
my $threshold_rad;
if (!$self->object_config->support_material_threshold =~ /%$/) {
if (!($self->object_config->support_material_threshold =~ /%$/)) {
$threshold_rad = deg2rad($self->object_config->support_material_threshold + 1); # +1 makes the threshold inclusive
Slic3r::debugf "Threshold angle = %d°\n", rad2deg($threshold_rad);
}