Fix for global quality in case of user created quality profile - CURA-4482

This commit is contained in:
ChrisTerBeke 2017-11-01 13:59:21 +01:00
parent 97421ecf58
commit e23e6cfa31

View file

@ -1024,11 +1024,11 @@ class MachineManager(QObject):
})
# append the global quality changes
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material], global_quality = True)
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material], global_quality = "True")
# if there is not global quality but we're using a single extrusion machine, copy the quality of the first extruder - CURA-4482
if not global_quality and len(extruder_stacks) == 1:
global_quality = result[0]["quality_changes"]
global_quality = result[0]["quality"]
# if still no global quality changes are found we set it to empty (not supported)
if not global_quality: