mirror of
https://github.com/nzp-team/Waypoint-Converter.git
synced 2024-11-10 06:31:47 +00:00
Wrap altered coords in quotes
Breaks waypoint loading otherwise
This commit is contained in:
parent
7ee994a55c
commit
68eb643be5
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ def parsePC(oldWayFile):
|
||||||
# Round origin coords to 1 decimal place
|
# Round origin coords to 1 decimal place
|
||||||
originCoords = waydict["origin"].strip("'").split()
|
originCoords = waydict["origin"].strip("'").split()
|
||||||
originCoords = [round(float(coord), 1) for coord in originCoords]
|
originCoords = [round(float(coord), 1) for coord in originCoords]
|
||||||
waydict["origin"] = str(originCoords[0]) + " " + str(originCoords[1]) + " " + str(originCoords[2])
|
waydict["origin"] = "'" + str(originCoords[0]) + " " + str(originCoords[1]) + " " + str(originCoords[2]) + "'"
|
||||||
# Replace id 0
|
# Replace id 0
|
||||||
if waydict["id"] == "0":
|
if waydict["id"] == "0":
|
||||||
waydict["id"] = "255" # I sure do hope nobody has this many waypoints
|
waydict["id"] = "255" # I sure do hope nobody has this many waypoints
|
||||||
|
|
Loading…
Reference in a new issue