mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Limit the max_value for extruders to the number of extruders
CuraEngine would crash if instructed to use an extruder that it knows nothing about. Extruders start counting at 0, so max_value is set to machine_extruder_count - 1. Fixes the crash outlined in CURA-965
This commit is contained in:
parent
27aef006a8
commit
a2ff775c08
1 changed files with 6 additions and 6 deletions
|
@ -79,7 +79,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"always_visible": true
|
"always_visible": true
|
||||||
},
|
},
|
||||||
"adhesion_extruder_nr": {
|
"adhesion_extruder_nr": {
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"global_only": true
|
"global_only": true
|
||||||
},
|
},
|
||||||
"support_extruder_nr": {
|
"support_extruder_nr": {
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"global_only": true,
|
"global_only": true,
|
||||||
"children": {
|
"children": {
|
||||||
"support_infill_extruder_nr": {
|
"support_infill_extruder_nr": {
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"global_only": true
|
"global_only": true
|
||||||
},
|
},
|
||||||
"support_extruder_nr_layer_0": {
|
"support_extruder_nr_layer_0": {
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"global_only": true
|
"global_only": true
|
||||||
},
|
},
|
||||||
"support_roof_extruder_nr": {
|
"support_roof_extruder_nr": {
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"min_value": "0",
|
"min_value": "0",
|
||||||
"max_value": "16",
|
"max_value": "machine_extruder_count - 1",
|
||||||
"enabled": "support_roof_enable",
|
"enabled": "support_roof_enable",
|
||||||
"global_only": true
|
"global_only": true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue