Enable infill pattern via infill line distance instead.

Fixes an issue where, when the global infill density was 0, and the settings for a mesh overlap changed the infill line distance (but not outright the density),  the infill pattern would be disabled in the mesh overlap settings. (You still will need to select both the density and line width to actually change the line width though.)

Relates to github issue Cura/10349 (not explicity linking it here, as it might close that issue then, while it shouldn't as most sub-issues in there are still unresolved one way or the other.
This commit is contained in:
Remco Burema 2021-09-07 14:54:57 +02:00
parent 30b8293c51
commit 7eeae4db87
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -1909,7 +1909,7 @@
"gyroid": "Gyroid" "gyroid": "Gyroid"
}, },
"default_value": "grid", "default_value": "grid",
"enabled": "infill_sparse_density > 0", "enabled": "infill_line_distance > 0",
"value": "'lines' if infill_sparse_density > 25 else 'grid'", "value": "'lines' if infill_sparse_density > 25 else 'grid'",
"limit_to_extruder": "infill_extruder_nr", "limit_to_extruder": "infill_extruder_nr",
"settable_per_mesh": true "settable_per_mesh": true