From 28cc1e8cf7eebc1d4d8be6e406a564d83f272d4e Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Jul 2016 15:37:12 +0200 Subject: [PATCH] Translate material, variant and profile along They might not exist any more because the relation of profiles to printers changed from 2.1 to 2.2 for some machines (notably the UM2+ variants). But then it'll just make it empty when loading. Contributes to issue CURA-844. --- .../VersionUpgrade/VersionUpgrade21to22/MachineInstance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py index b64e87f5b4..da58737d60 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py @@ -68,9 +68,9 @@ class MachineInstance: containers = [ self._name + "_current_settings", - "empty", #The dependencies of the active profile, material and variant changed, so there is no 1:1 relation possible here. - "empty", - "empty", + self._active_profile_name, + self._active_material_name, + self._variant_name, self._type_name ] config.set("general", "containers", ",".join(containers))