Fetch support extruder instead of the default.

The (main) problem here was that the 'active extruder' was queried for the value, which isn't the same as the support-extruder.

CURA-11725
This commit is contained in:
Remco Burema 2024-03-20 13:51:09 +01:00
parent d441130e3b
commit bc64d8fa4e
4 changed files with 19 additions and 3 deletions

View file

@ -34,6 +34,15 @@ RecommendedSettingSection
storeIndex: 0
}
UM.SettingPropertyProvider
{
id: supportExtruderProvider
key: "support_extruder_nr"
containerStack: Cura.MachineManager.activeMachine
watchedProperties: [ "value" ]
storeIndex: 0
}
contents: [
RecommendedSettingItem
{
@ -47,6 +56,8 @@ RecommendedSettingSection
width: parent.width
settingName: "support_structure"
propertyRemoveUnusedValue: false
updateAllExtruders: true
defaultExtruderIndex: supportExtruderProvider.properties.value
}
},
RecommendedSettingItem
@ -75,6 +86,8 @@ RecommendedSettingSection
{
width: parent.width
settingName: "support_type"
updateAllExtruders: true
defaultExtruderIndex: supportExtruderProvider.properties.value
}
}
]