diff options
author | Ghostkeeper <rubend@tutanota.com> | 2016-12-14 14:04:28 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2016-12-14 14:37:52 +0300 |
commit | eb5d63e5482796b416fbfa16b88d7da756e81d8b (patch) | |
tree | d307ad15ba60314e292627ef003d0bcdb97076df /resources/definitions | |
parent | d145eb1f67fd42b2ac565cddaedf16ddb58d77ed (diff) |
Guard against infill density being 0
Otherwise the logarithm is undefined
Contributes to issue CURA-3137.
Diffstat (limited to 'resources/definitions')
-rw-r--r-- | resources/definitions/fdmprinter.def.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/definitions/fdmprinter.def.json b/resources/definitions/fdmprinter.def.json index 8dec4a307e..e63485ed35 100644 --- a/resources/definitions/fdmprinter.def.json +++ b/resources/definitions/fdmprinter.def.json @@ -1190,7 +1190,7 @@ "type": "int", "minimum_value": "0", "maximum_value_warning": "4", - "maximum_value": "20 - math.log(infill_line_distance) / math.log(2)", + "maximum_value": "(20 - math.log(infill_line_distance) / math.log(2)) if infill_line_distance > 1 else 1", "enabled": "infill_sparse_density > 0 and infill_pattern != 'cubicsubdiv'", "settable_per_mesh": true }, |