Rename variable

Even if we could reuse the other, it make sense to call it 'deviation'

Contributes to CURA-6458.
This commit is contained in:
Diego Prado Gesto 2019-04-16 12:04:34 +02:00
parent 3b184a5a9a
commit eb3e343be5

View file

@ -54,8 +54,8 @@ class VersionUpgrade40to41(VersionUpgrade):
resolution = parser["values"]["meshfix_maximum_resolution"]
if resolution.startswith("="):
resolution = resolution[1:]
resolution = "=(" + resolution + ") / 2"
parser["values"]["meshfix_maximum_deviation"] = resolution
deviation = "=(" + resolution + ") / 2"
parser["values"]["meshfix_maximum_deviation"] = deviation
del parser["values"]["meshfix_maximum_resolution"]
result = io.StringIO()