Browse Source

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.
Ghostkeeper 8 years ago
parent
commit
71505a8b35
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py

+ 3 - 0
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: