mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 23:35:59 +08:00
Wrong logic on detecting use of % for support threshold. Fixes #3842.
This commit is contained in:
parent
ad83265927
commit
5cc2d346a2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user