Never fill None for quality changes profile

We want it to be the empty profile instead. This gets passed on all the way to _replaceQualityOrQualityChangesInStack where the metadata is requested.

Contributes to issue CURA-3301.
This commit is contained in:
Ghostkeeper 2017-08-08 13:51:40 +02:00
parent a75387ff3e
commit fe406f530c
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -929,6 +929,8 @@ class MachineManager(QObject):
quality_changes = quality_changes_list[0] quality_changes = quality_changes_list[0]
else: else:
quality_changes = global_quality_changes quality_changes = global_quality_changes
if not quality_changes:
quality_changes = self._empty_quality_changes_container
material = stack.material material = stack.material
quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material]) quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])