mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 22:23:57 -06:00
Don't crash if support density is 0
Found while working on CURA-4523.
This commit is contained in:
parent
6d2bcd9b3e
commit
df1a11ca07
1 changed files with 2 additions and 2 deletions
|
@ -3495,7 +3495,7 @@
|
|||
"minimum_value_warning": "support_line_width",
|
||||
"default_value": 2.66,
|
||||
"enabled": "support_enable",
|
||||
"value": "(support_line_width * 100) / support_infill_rate * (2 if support_pattern == 'grid' else (3 if support_pattern == 'triangles' else 1))",
|
||||
"value": "0 if support_infill_rate == 0 else (support_line_width * 100) / support_infill_rate * (2 if support_pattern == 'grid' else (3 if support_pattern == 'triangles' else 1))",
|
||||
"limit_to_extruder": "support_infill_extruder_nr",
|
||||
"settable_per_mesh": false,
|
||||
"settable_per_extruder": true
|
||||
|
@ -5107,7 +5107,7 @@
|
|||
"description": "Skip one in every N connection lines to make the support structure easier to break away.",
|
||||
"type": "int",
|
||||
"default_value": 5,
|
||||
"value": "round(support_skip_zag_per_mm / support_line_distance)",
|
||||
"value": "0 if support_line_distance == 0 else round(support_skip_zag_per_mm / support_line_distance)",
|
||||
"minimum_value": "1",
|
||||
"minimum_value_warning": "3",
|
||||
"enabled": "support_enable and (support_pattern == 'zigzag') and support_skip_some_zags",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue