invert x coord on X model loader

This commit is contained in:
Holly Stubbs 2024-12-26 16:29:47 +00:00
parent d7a0650183
commit 648f0d0106
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -28,7 +28,7 @@ static func LoadModel(filePath: String):
if pointData.size() == 5:
meshDataStart = false
indexDataStart = true
verts.push_back(Vector3(float(pointData[0]), float(pointData[1]), float(pointData[2])))
verts.push_back(Vector3(-float(pointData[0]), float(pointData[1]), float(pointData[2])))
elif indexDataStart:
var indexParts = line.strip_edges().split(";")
if indexParts.size() == 4: