mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix parser value parsing
CURA-11526
This commit is contained in:
parent
32cf64f90c
commit
c821fd6b39
1 changed files with 2 additions and 7 deletions
|
@ -37,11 +37,6 @@ class VersionUpgrade56to57(VersionUpgrade):
|
||||||
if removed in visible_settings:
|
if removed in visible_settings:
|
||||||
visible_settings.remove(removed)
|
visible_settings.remove(removed)
|
||||||
|
|
||||||
if "brim_outside_only" in parser["values"]:
|
|
||||||
parser["values"]["brim_location"] = "outside" if bool(
|
|
||||||
parser["values"]["brim_outside_only"]) else "everywhere"
|
|
||||||
del parser["values"]["brim_outside_only"]
|
|
||||||
|
|
||||||
parser["general"]["visible_settings"] = ";".join(visible_settings)
|
parser["general"]["visible_settings"] = ";".join(visible_settings)
|
||||||
|
|
||||||
result = io.StringIO()
|
result = io.StringIO()
|
||||||
|
@ -74,8 +69,8 @@ class VersionUpgrade56to57(VersionUpgrade):
|
||||||
del parser["values"][removed]
|
del parser["values"][removed]
|
||||||
|
|
||||||
if "brim_outside_only" in parser["values"]:
|
if "brim_outside_only" in parser["values"]:
|
||||||
parser["values"]["brim_location"] = "outside" if bool(
|
parser["values"]["brim_location"] = "outside" if parser["values"][
|
||||||
parser["values"]["brim_outside_only"]) else "everywhere"
|
"brim_outside_only"] == "True" else "everywhere"
|
||||||
del parser["values"]["brim_outside_only"]
|
del parser["values"]["brim_outside_only"]
|
||||||
|
|
||||||
result = io.StringIO()
|
result = io.StringIO()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue