From 71505a8b358448cc32aacf8b6d34d25195f8371b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 9 Aug 2016 15:06:50 +0200 Subject: [PATCH] Use normal config only if not material(-specific) profile Other profiles should just return an array with only their single profile. Contributes to issue CURA-844. --- plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index 21559fd9d6..158f7fa2a6 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -149,6 +149,9 @@ class Profile: config_copy = copy.copy(config) config_copy.set("metadata", "material", material_id) configs.append(config_copy) + else: + configs.append(config) + filenames.append(self._filename) outputs = [] for config in configs: