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:
authorLipu Fei <lipu.fei815@gmail.com>2019-09-10 13:22:16 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-09-10 13:22:16 +0300
commit87285f6b86f7ae9a0d5d8eb33c2fb1afe2dcd7cb (patch)
treece63a997d131f9db128ff05aefcf4d212f64d82f /plugins/VersionUpgrade/VersionUpgrade42to43
parent8c817e041ee1ca9a98ac4a6dfe6274ee8b5893cd (diff)
Fix version upgrade 42 to 43
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade42to43')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade42to43/VersionUpgrade42to43.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade42to43/VersionUpgrade42to43.py b/plugins/VersionUpgrade/VersionUpgrade42to43/VersionUpgrade42to43.py
index 6bcf43dc71..c15f1e0468 100644
--- a/plugins/VersionUpgrade/VersionUpgrade42to43/VersionUpgrade42to43.py
+++ b/plugins/VersionUpgrade/VersionUpgrade42to43/VersionUpgrade42to43.py
@@ -119,10 +119,10 @@ class VersionUpgrade42to43(VersionUpgrade):
if key in parser["values"]:
del parser["values"][key]
- if "support_infill_angles" in parser["values"]:
- old_value = float(parser["values"]["support_infill_angles"])
- new_value = [int(round(old_value))]
- parser["values"]["support_infill_angles"] = str(new_value)
+ if "support_infill_angles" in parser["values"]:
+ old_value = float(parser["values"]["support_infill_angles"])
+ new_value = [int(round(old_value))]
+ parser["values"]["support_infill_angles"] = str(new_value)
result = io.StringIO()
parser.write(result)