Fixed validator to properly only trigger on 0% or 0.

This commit is contained in:
Joseph Lenox 2017-04-03 22:12:13 -05:00
parent 5c2ab11fcd
commit f725b519e8

View File

@ -271,8 +271,8 @@ sub validate {
# 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';
die "Value of 0 is illegal. Use some % value instead (e.g. 150%) for auto.\n"
if $self->support_material_threshold =~ /^0+/;
}