mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-06 01:56:09 +08:00
Validate support material threshold in Config.pm (#3845)
straight value of 0 is illegal.
This commit is contained in:
parent
7a4d2bd423
commit
6a3eb3d038
@ -269,6 +269,13 @@ sub validate {
|
||||
qw(perimeter infill solid_infill top_infill support_material first_layer);
|
||||
}
|
||||
|
||||
# support material
|
||||
if ($self->support_material) {
|
||||
die "Angle value of 0 is illegal. Use some % value instead (e.g. 150%)\n"
|
||||
if $self->support_material_threshold == 0 || $self->support_material_threshold eq '0';
|
||||
}
|
||||
|
||||
|
||||
# general validation, quick and dirty
|
||||
foreach my $opt_key (@{$self->get_keys}) {
|
||||
my $opt = $Options->{$opt_key};
|
||||
|
Loading…
x
Reference in New Issue
Block a user