mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-09 15:19:00 +08:00
Don't crash if support density is 0
Found while working on CURA-4523.
This commit is contained in:
parent
6d2bcd9b3e
commit
df1a11ca07
@ -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…
x
Reference in New Issue
Block a user