Don't give error value for infill layer thickness if no infill

It won't crash the engine because the entire infill filling routine is skipped.
This commit is contained in:
Ghostkeeper 2018-08-29 11:55:37 +02:00
parent 694cc91ae9
commit 1d8f19f1d1
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -1819,9 +1819,9 @@
"unit": "mm",
"type": "float",
"default_value": 0.1,
"minimum_value": "resolveOrValue('layer_height')",
"minimum_value": "resolveOrValue('layer_height') if infill_line_distance > 0 else -999999",
"maximum_value_warning": "0.75 * machine_nozzle_size",
"maximum_value": "resolveOrValue('layer_height') * (1.45 if spaghetti_infill_enabled else 8)",
"maximum_value": "resolveOrValue('layer_height') * (1.45 if spaghetti_infill_enabled else 8) if infill_line_distance > 0 else 999999",
"value": "resolveOrValue('layer_height')",
"enabled": "infill_sparse_density > 0 and not spaghetti_infill_enabled",
"limit_to_extruder": "infill_extruder_nr",