Skip to content

Commit

Permalink
Wrong logic on detecting use of % for support threshold. Fixes prusa3…
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofhyphens committed Apr 11, 2017
1 parent ad83265 commit 5cc2d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Slic3r/Print/SupportMaterial.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5cc2d34

Please sign in to comment.