From c902fef37227580f4d5c055cbcc019329d30693c Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Tue, 27 Sep 2016 14:15:55 +0200 Subject: [PATCH 1/2] Removed a dead line. Contributes to CURA-2320 Filtering Quality-Changes profiles on material? --- cura/Settings/MachineManager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index ff4b6f0327..9c15d33e52 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -665,7 +665,6 @@ class MachineManager(QObject): # Find the values for each extruder. for stack in ExtruderManager.getInstance().getActiveExtruderStacks(): - # machine_definition = QualityManager.getInstance().getParentMachineDefinition(stack.getBottom()) material = stack.findContainer(type="material") stack_qualities = QualityManager.getInstance().findQualityByName(quality_name, global_machine_definition, [material]) if not stack_qualities: From 4ec380ffd9bd678d1b6d218792c09dd41ccda571 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 27 Sep 2016 15:12:29 +0200 Subject: [PATCH 2/2] Quality-changes now have a quality_type instead of referring to quality This field was just renamed, I think for CURA-2320. This updates the name for the upgrade process. Contributes to issue CURA-844. --- plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index a09ac4f3d7..4894df84aa 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -94,7 +94,7 @@ class Profile: config.set("general", "definition", "fdmprinter") #In this case, the machine definition is unknown, and it might now have machine-specific profiles, in which case this will fail. config.add_section("metadata") - config.set("metadata", "quality", "normal") #This feature doesn't exist in 2.1 yet, so we don't know the actual quality type. For now, always base it on normal. + config.set("metadata", "quality_type", "normal") #This feature doesn't exist in 2.1 yet, so we don't know the actual quality type. For now, always base it on normal. config.set("metadata", "type", "quality_changes") if self._weight: config.set("metadata", "weight", str(self._weight))