mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Move documentation nearer to code it applies to
Contributes to issue CURA-6522.
This commit is contained in:
parent
8398384af1
commit
71a10a262a
1 changed files with 3 additions and 4 deletions
|
@ -3,10 +3,6 @@ from typing import Tuple, List
|
||||||
import io
|
import io
|
||||||
from UM.VersionUpgrade import VersionUpgrade
|
from UM.VersionUpgrade import VersionUpgrade
|
||||||
|
|
||||||
# Merged preferences: machine_head_polygon and machine_head_with_fans_polygon -> machine_head_with_fans_polygon
|
|
||||||
# When both are present, machine_head_polygon will be removed
|
|
||||||
# When only one of the two is present, it's value will be used
|
|
||||||
|
|
||||||
|
|
||||||
class VersionUpgrade44to45(VersionUpgrade):
|
class VersionUpgrade44to45(VersionUpgrade):
|
||||||
def getCfgVersion(self, serialised: str) -> int:
|
def getCfgVersion(self, serialised: str) -> int:
|
||||||
|
@ -41,6 +37,9 @@ class VersionUpgrade44to45(VersionUpgrade):
|
||||||
# Update version number.
|
# Update version number.
|
||||||
parser["metadata"]["setting_version"] = "11"
|
parser["metadata"]["setting_version"] = "11"
|
||||||
|
|
||||||
|
# Merged preferences: machine_head_polygon and machine_head_with_fans_polygon -> machine_head_with_fans_polygon
|
||||||
|
# When both are present, machine_head_polygon will be removed
|
||||||
|
# When only one of the two is present, it's value will be used
|
||||||
if "values" in parser:
|
if "values" in parser:
|
||||||
# merge machine_head_with_fans_polygon (preferred) and machine_head_polygon
|
# merge machine_head_with_fans_polygon (preferred) and machine_head_polygon
|
||||||
if "machine_head_with_fans_polygon" in parser["values"]:
|
if "machine_head_with_fans_polygon" in parser["values"]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue