mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fix definition_changes not being updated properly
CURA-6667
This commit is contained in:
parent
c67f2cfcf5
commit
b8d27b9ce3
1 changed files with 6 additions and 0 deletions
|
@ -244,6 +244,12 @@ class VersionUpgrade41to42(VersionUpgrade):
|
|||
#Update version number.
|
||||
parser["metadata"]["setting_version"] = "8"
|
||||
|
||||
# Certain instance containers (such as definition changes) reference to a certain definition container
|
||||
# Since a number of those changed name, we also need to update those.
|
||||
old_definition = parser["general"]["definition"]
|
||||
if old_definition in _renamed_profiles:
|
||||
parser["general"]["definition"] = _renamed_profiles[old_definition]
|
||||
|
||||
#Rename settings.
|
||||
if "values" in parser:
|
||||
for old_name, new_name in _renamed_settings.items():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue