Seems to work, except for the tooltip (shows global value). CURA-2007

This commit is contained in:
Jack Ha 2016-08-04 19:23:23 +02:00
parent 30898f9642
commit c0dd19ce08
2 changed files with 3 additions and 6 deletions

View file

@ -107,14 +107,11 @@ SettingItem
target: input
property: "text"
value: {
if (propertyProvider.properties.resolve != "None") {
if ((propertyProvider.properties.resolve != "None") && (stackLevel != 0)) {
// 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).
if (definition.key == "material_bed_temperature") {
CuraApplication.log("## global value " + globalPropertyProvider.properties.value);
}
return (globalPropertyProvider.properties.value != null) ? globalPropertyProvider.properties.value : propertyProvider.properties.resolve;
return propertyProvider.properties.resolve;
} else {
return propertyProvider.properties.value;
}