diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-10-15 19:36:05 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-10-15 19:36:05 +0300 |
commit | a3df53c1e186d678f81fc237800d688fa62d3ad2 (patch) | |
tree | 05452e8a920ffad6de753dee122292e64a764b4d /cura | |
parent | d12219cab8d407e1c0f81782409aea50bf3d4085 (diff) |
Quality_changes are now taken into account for UM3Extended
CURA-2690
Diffstat (limited to 'cura')
-rw-r--r-- | cura/Settings/QualitySettingsModel.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cura/Settings/QualitySettingsModel.py b/cura/Settings/QualitySettingsModel.py index 6c59e3bde3..07191cd49d 100644 --- a/cura/Settings/QualitySettingsModel.py +++ b/cura/Settings/QualitySettingsModel.py @@ -117,7 +117,7 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel): quality_container = quality_container[0] quality_type = quality_container.getMetaDataEntry("quality_type") - definition_id = quality_container.getDefinition().getId() + definition_id = UM.Application.getInstance().getMachineManager().getQualityDefinitionId(quality_container.getDefinition()) criteria = {"type": "quality", "quality_type": quality_type, "definition": definition_id} @@ -150,8 +150,10 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel): if quality_changes_container: criteria = {"type": "quality_changes", "quality_type": quality_type, "definition": definition_id, "name": quality_changes_container.getName()} if self._extruder_definition_id != "": - criteria["extruder"] = self._extruder_definition_id - criteria["name"] = quality_changes_container.getName() + extruder_definitions = self._container_registry.findDefinitionContainers(id = self._extruder_definition_id) + if extruder_definitions: + criteria["extruder"] = UM.Application.getInstance().getMachineManager().getQualityDefinitionId(extruder_definitions[0]) + criteria["name"] = quality_changes_container.getName() else: criteria["extruder"] = None |