Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-10-25 17:27:16 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-10-25 17:27:16 +0300
commitf1d94d921c4457988999eab16ae942ea316e93b1 (patch)
tree452633bee9dbca7b4e6f6613c30b485ba0d0118d /plugins/MachineSettingsAction
parent197bf057ccc9271668b9a37c32ca983c0419fbef (diff)
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.
Diffstat (limited to 'plugins/MachineSettingsAction')
-rw-r--r--plugins/MachineSettingsAction/MachineSettingsAction.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml
index ffd3a8cb47..e16ecf5492 100644
--- a/plugins/MachineSettingsAction/MachineSettingsAction.qml
+++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml
@@ -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