mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Guard against infill density being 0
Otherwise the logarithm is undefined Contributes to issue CURA-3137.
This commit is contained in:
parent
d145eb1f67
commit
eb5d63e548
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue