Rename Orthogonal to Orthographic everywhere

This commit is contained in:
Ghostkeeper 2019-07-30 17:35:40 +02:00
parent 2ce567ccfe
commit 846cbe79a3
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
5 changed files with 24 additions and 6 deletions

View file

@ -39,6 +39,17 @@ class VersionUpgrade42to43(VersionUpgrade):
setting_version = int(parser.get("metadata", "setting_version", fallback = "0"))
return format_version * 1000000 + setting_version
def upgradePreferences(self, serialized: str, filename: str):
parser = configparser.ConfigParser(interpolation = None)
parser.read_string(serialized)
if "camera_perspective_mode" in parser["general"] and parser["general"]["camera_perspective_mode"] == "orthogonal":
parser["general"]["camera_perspective_mode"] = "orthographic"
result = io.StringIO()
parser.write(result)
return [filename], [result.getvalue()]
## Upgrades instance containers to have the new version
# number.
#