mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Fix upgrading custom FDM printers from 2.5
CURA-4188 Custom FDM printers in 2.5 don't have multi-extrusion support but they do since 2.6. Upgrading from 2.5 to 2.6 will not create the missing extruder stacks for the old custom FDM printers, which causes a crash. This fix makes sure that all custom FDM printers will have 8 extruder stacks during the upgrade so that Cura can still start normally and those printers will still be usable.
This commit is contained in:
parent
9a00c07c3d
commit
67cfb064e6
3 changed files with 158 additions and 1 deletions
|
@ -19,6 +19,7 @@ def getMetaData():
|
|||
("user", 2000000): ("user", 2000001, upgrade.upgradeInstanceContainer),
|
||||
("quality", 2000000): ("quality", 2000001, upgrade.upgradeInstanceContainer),
|
||||
("definition_changes", 2000000): ("definition_changes", 2000001, upgrade.upgradeInstanceContainer),
|
||||
("machine_stack", 3000000): ("machine_stack", 3000001, upgrade.upgradeMachineStack),
|
||||
},
|
||||
"sources": {
|
||||
"quality_changes": {
|
||||
|
@ -36,6 +37,10 @@ def getMetaData():
|
|||
"definition_changes": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./machine_instances"}
|
||||
},
|
||||
"machine_stack": {
|
||||
"get_version": upgrade.getCfgVersion,
|
||||
"location": {"./machine_instances"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue