mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 04:19:02 +08:00
The MachineManager doesn't have the extruder stacks but the active
machine does, so use it when setting the compatible material diameter to the current extruder. Contributes to CURA-5857.
This commit is contained in:
parent
197bf057cc
commit
f1d94d921c
@ -405,15 +405,15 @@ Cura.MachineAction
|
||||
{
|
||||
if (settingsTabs.currentIndex > 0)
|
||||
{
|
||||
manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1);
|
||||
manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1)
|
||||
}
|
||||
}
|
||||
function setValueFunction(value)
|
||||
{
|
||||
if (settingsTabs.currentIndex > 0)
|
||||
{
|
||||
var extruderIndex = (settingsTabs.currentIndex - 1).toString();
|
||||
Cura.MachineManager.extruders[extruderIndex].compatibleMaterialDiameter = value;
|
||||
var extruderIndex = (settingsTabs.currentIndex - 1).toString()
|
||||
Cura.MachineManager.activeMachine.extruders[extruderIndex].compatibleMaterialDiameter = value
|
||||
}
|
||||
}
|
||||
property bool isExtruderSetting: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user