mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Make sure a valid stack is activated after changing the number of extruders
This commit is contained in:
parent
818043854d
commit
7bc28a7e48
1 changed files with 21 additions and 0 deletions
|
@ -377,6 +377,26 @@ Cura.MachineAction
|
|||
{
|
||||
machineExtruderCountProvider.setPropertyValue("value", index + 1);
|
||||
manager.forceUpdate();
|
||||
if(index > 0)
|
||||
{
|
||||
// multiextrusion; make sure one of these extruder stacks is active
|
||||
if(ExtruderManager.activeExtruderIndex == -1)
|
||||
{
|
||||
ExtruderManager.setActiveExtruderIndex(0);
|
||||
}
|
||||
else if(ExtruderManager.activeExtruderIndex > index)
|
||||
{
|
||||
ExtruderManager.setActiveExtruderIndex(index);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// single extrusion; make sure the machine stack is active
|
||||
if(ExtruderManager.activeExtruderIndex != -1)
|
||||
{
|
||||
ExtruderManager.setActiveExtruderIndex(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Item { width: UM.Theme.getSize("default_margin").width; height: UM.Theme.getSize("default_margin").height; visible: extruderCountComboBox.visible }
|
||||
|
@ -435,6 +455,7 @@ Cura.MachineAction
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
height: parent.height
|
||||
width: settingsTabs.columnWidth
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue