mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:05:54 +08:00
Only upgrade stacks based on TwoTrees printers
Both extruder stacks and global stacks though. Contributes to issue CURA-8212.
This commit is contained in:
parent
a00b21a802
commit
9a7b19f8ac
@ -140,14 +140,14 @@ class VersionUpgrade49to410(VersionUpgrade):
|
||||
|
||||
# Change renamed profiles.
|
||||
if "containers" in parser:
|
||||
# For legacy TwoTrees printers, change the variant to 0.4.
|
||||
definition_id = parser["containers"]["7"]
|
||||
if definition_id in self._quality_changes_to_two_trees_base:
|
||||
material_id = parser["containers"]["4"]
|
||||
old_quality_id = parser["containers"]["3"]
|
||||
if parser["metadata"].get("type", "machine") == "extruder_train":
|
||||
if parser["containers"]["5"] == "empty_variant":
|
||||
if definition_id in self._default_variants:
|
||||
parser["containers"]["5"] = self._default_variants[definition_id]
|
||||
parser["containers"]["5"] = self._default_variants[definition_id] # For legacy TwoTrees printers, change the variant to 0.4.
|
||||
|
||||
# Also change the quality to go along with it.
|
||||
if material_id in self._two_trees_quality_per_material and old_quality_id in self._two_trees_quality_per_material[material_id]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user