diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-01-30 13:23:00 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-01-30 13:23:00 +0300 |
commit | bdfb8f1b5be708a12402d1f07d69d4f4b12550b8 (patch) | |
tree | a7d59cd94ab0788cf09fca7c969b81c022e2ce08 /plugins/VersionUpgrade/VersionUpgrade30to31 | |
parent | f1363fab73d5020b26f2ae389c0cba9cafe504d3 (diff) |
CURA-4885 Remove the part in which the version upgrader creates a
quality changes instance. This instance container is created in the
workspace reader. This avoids the profile to appear twice.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade30to31')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py b/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py index c1f32b424f..d7b2c1a001 100644 --- a/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py +++ b/plugins/VersionUpgrade/VersionUpgrade30to31/VersionUpgrade30to31.py @@ -117,17 +117,6 @@ class VersionUpgrade30to31(VersionUpgrade): if not parser.has_section(each_section): parser.add_section(each_section) - # Copy global quality changes to extruder quality changes for single extrusion machines - if parser["metadata"]["type"] == "quality_changes": - all_quality_changes = self._getSingleExtrusionMachineQualityChanges(parser) - # Note that DO NOT!!! use the quality_changes returned from _getSingleExtrusionMachineQualityChanges(). - # Those are loaded from the hard drive which are original files that haven't been upgraded yet. - # NOTE 2: The number can be 0 or 1 depends on whether you are loading it from the qualities folder or - # from a project file. When you load from a project file, the custom profile may not be in cura - # yet, so you will get 0. - if len(all_quality_changes) <= 1 and not parser.has_option("metadata", "extruder"): - self._createExtruderQualityChangesForSingleExtrusionMachine(filename, parser) - # Check renamed definitions if "definition" in parser["general"] and parser["general"]["definition"] in _RENAMED_DEFINITION_DICT: parser["general"]["definition"] = _RENAMED_DEFINITION_DICT[parser["general"]["definition"]] |