diff options
author | Remco Burema <41987080+rburema@users.noreply.github.com> | 2018-10-26 18:35:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 18:35:50 +0300 |
commit | 5133b6300a920d6e57a553237c373f31e6f9a1bd (patch) | |
tree | f51ea19bad70872ccce31cb934fae7943b3d5ec6 /plugins/MachineSettingsAction | |
parent | de680f4aac20e1db017d6d871db19d00cdd467f4 (diff) | |
parent | f1d94d921c4457988999eab16ae942ea316e93b1 (diff) |
Merge pull request #4650 from Ultimaker/CURA-5857_fix_machine_settings_set_diameter
[3.6] [CURA-5857] Fix setting extruder material diameter in Machine Settings dialog
Diffstat (limited to 'plugins/MachineSettingsAction')
-rw-r--r-- | plugins/MachineSettingsAction/MachineSettingsAction.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.qml b/plugins/MachineSettingsAction/MachineSettingsAction.qml index 5109aa05cb..e16ecf5492 100644 --- a/plugins/MachineSettingsAction/MachineSettingsAction.qml +++ b/plugins/MachineSettingsAction/MachineSettingsAction.qml @@ -405,12 +405,16 @@ Cura.MachineAction { if (settingsTabs.currentIndex > 0) { - manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1); + manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1) } } function setValueFunction(value) { - Cura.MachineManager.activeStack.compatibleMaterialDiameter = value + if (settingsTabs.currentIndex > 0) + { + var extruderIndex = (settingsTabs.currentIndex - 1).toString() + Cura.MachineManager.activeMachine.extruders[extruderIndex].compatibleMaterialDiameter = value + } } property bool isExtruderSetting: true } |