Fix updating resolved values when changing material. Contributes to CURA-2159

This commit is contained in:
Jack Ha 2016-09-12 15:48:30 +02:00
parent 2cde439964
commit 8304f17efd

View file

@ -107,7 +107,14 @@ SettingItem
target: input
property: "text"
value: {
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0) && (stackLevel != 1)) {
// Stacklevels
// 0: user -> unsaved change
// 1: quality changes -> saved change
// 2: quality
// 3: material -> user changed material in materialspage
// 4: variant
// 5: machine
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0) && (stackLevel != 1) && (stackLevel != 3)) {
// We have a resolve function. Indicates that the setting is not settable per extruder and that
// we have to choose between the resolved value (default) and the global value
// (if user has explicitly set this).