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
This commit is contained in:
Remco Burema 2018-10-26 17:35:50 +02:00 committed by GitHub
commit 5133b6300a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,12 +405,16 @@ Cura.MachineAction
{ {
if (settingsTabs.currentIndex > 0) if (settingsTabs.currentIndex > 0)
{ {
manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1); manager.updateMaterialForDiameter(settingsTabs.currentIndex - 1)
} }
} }
function setValueFunction(value) 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 property bool isExtruderSetting: true
} }