diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-10-25 17:27:16 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-10-25 17:27:16 +0300 |
commit | f1d94d921c4457988999eab16ae942ea316e93b1 (patch) | |
tree | 452633bee9dbca7b4e6f6613c30b485ba0d0118d /plugins | |
parent | 197bf057ccc9271668b9a37c32ca983c0419fbef (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')
-rw-r--r-- | plugins/MachineSettingsAction/MachineSettingsAction.qml | 6 |
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 |