fixed mapping of support extruder nr

Contributes to PP-285 and CURA-10643
This commit is contained in:
Jelle Spijker 2023-06-05 09:16:56 +02:00
parent 20c2b2b4cd
commit e3cbc37740
No known key found for this signature in database
GPG Key ID: 034D1C0527888B65

View File

@ -4478,7 +4478,7 @@
"description": "Generate structures to support parts of the model which have overhangs. Without these structures, such parts would collapse during printing.",
"type": "bool",
"default_value": false,
"resolve": "any(extruderValues('support_enable'))",
"resolve": "[*map(lambda x: str(x).lower() == 'true', (extruderValues('support_enable') and extruderValues('material_is_support_material')))].index(True) if any([*map(lambda x: str(x).lower() == 'true', (extruderValues('support_enable') and extruderValues('material_is_support_material')))]) else int(defaultExtruderPosition())",
"settable_per_mesh": true,
"settable_per_extruder": false
},