mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-03 07:41:18 -07:00
CURA-4606 fixed menu setting nozzle
This commit is contained in:
parent
b2ca8565c9
commit
b9e7ee18a6
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue