mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 23:15:52 +08:00
CURA-4606 fixed menu setting nozzle
This commit is contained in:
parent
b2ca8565c9
commit
b9e7ee18a6
@ -21,12 +21,11 @@ Menu
|
|||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: model.root_material_id == Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex]
|
checked: model.root_material_id == Cura.MachineManager.currentRootMaterialId[extruderIndex]
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
var activeExtruderIndex = Cura.ExtruderManager.activeExtruderIndex;
|
Cura.MachineManager.setMaterial(extruderIndex, model.container_node);
|
||||||
Cura.MachineManager.setMaterial(activeExtruderIndex, model.container_node);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onObjectAdded: menu.insertItem(index, object)
|
onObjectAdded: menu.insertItem(index, object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user