Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2019-07-31 15:18:44 +0300
committerGhostkeeper <rubend@tutanota.com>2019-07-31 15:18:44 +0300
commit5cf4cd03cfff52cdbfde520be1facb027fed3ff5 (patch)
tree7f9847f2cc68e429b562bb0331826a7408e9c65b /plugins/VersionUpgrade/VersionUpgrade41to42
parent4b956953a643f1619f5be4c3566a1fd7cad1d971 (diff)
Fix importing profiles for CR10s
It was somehow missing from this list. An oversight. Fixes #6083.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade41to42')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade41to42/VersionUpgrade41to42.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade41to42/VersionUpgrade41to42.py b/plugins/VersionUpgrade/VersionUpgrade41to42/VersionUpgrade41to42.py
index 1ffb4030c5..334ab89a6d 100644
--- a/plugins/VersionUpgrade/VersionUpgrade41to42/VersionUpgrade41to42.py
+++ b/plugins/VersionUpgrade/VersionUpgrade41to42/VersionUpgrade41to42.py
@@ -198,6 +198,7 @@ _quality_changes_to_creality_base = {
"creality_cr10s5_extruder_0",
"creality_ender3_extruder_0"
"creality_cr10",
+ "creality_cr10s",
"creality_cr10s4",
"creality_cr10s5",
"creality_ender3",
@@ -238,6 +239,7 @@ class VersionUpgrade41to42(VersionUpgrade):
#
# This renames the renamed settings in the containers.
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
+ print("============================ upgrading instance container!")
parser = configparser.ConfigParser(interpolation = None)
parser.read_string(serialized)
@@ -264,6 +266,7 @@ class VersionUpgrade41to42(VersionUpgrade):
# For quality-changes profiles made for Creality printers, change the definition to the creality_base and make sure that the quality is something we have a profile for.
if parser["metadata"].get("type", "") == "quality_changes":
for possible_printer in _quality_changes_to_creality_base:
+ print("======================= basename:", os.path.basename(filename), "vs. possible printer", possible_printer)
if os.path.basename(filename).startswith(possible_printer + "_"):
parser["general"]["definition"] = "creality_base"
parser["metadata"]["quality_type"] = _creality_limited_quality_type.get(parser["metadata"]["quality_type"], "draft")