From fe82439b977232c45c507b4e902faf722a20bd21 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 25 Aug 2012 13:55:08 +0200 Subject: [PATCH] Changed: #1440 Typo --HG-- branch : build_pipeline_v3 --- code/nel/tools/pipeline/max_dump/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/tools/pipeline/max_dump/main.cpp b/code/nel/tools/pipeline/max_dump/main.cpp index 96c4f1006..5526a95b5 100644 --- a/code/nel/tools/pipeline/max_dump/main.cpp +++ b/code/nel/tools/pipeline/max_dump/main.cpp @@ -59,7 +59,7 @@ void exportObj(const std::string &fileName, const CReferenceMaker *triObject) for (uint i = 0; i < vertexBuffer->Value.size(); ++i) ofs << "v " << vertexBuffer->Value[i].x << " " << vertexBuffer->Value[i].y << " " << vertexBuffer->Value[i].z << "\n"; for (uint i = 0; i < indexBuffer->Value.size(); ++i) - ofs << "f " << (indexBuffer->Value[i].a) << " " << (indexBuffer->Value[i].b) << " " << (indexBuffer->Value[i].c) << "\n"; + ofs << "f " << (indexBuffer->Value[i].a + 1) << " " << (indexBuffer->Value[i].b + 1) << " " << (indexBuffer->Value[i].c + 1) << "\n"; // + 1 as .obj indexes at 1... } // int __stdcall WinMain(void *, void *, void *, int)