Commit 77f1aebc authored by hybrid's avatar hybrid

Fixed another md2 normals problem found by cyberwan.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@722 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 1441da7f
...@@ -641,8 +641,8 @@ bool CAnimatedMeshMD2::loadFile(io::IReadFile* file) ...@@ -641,8 +641,8 @@ bool CAnimatedMeshMD2::loadFile(io::IReadFile* file)
vertices[i].push_back(v); vertices[i].push_back(v);
s32 normalidx = frame->vertices[j].lightNormalIndex; u8 normalidx = frame->vertices[j].lightNormalIndex;
if (normalidx > 0 && normalidx < Q2_VERTEX_NORMAL_TABLE_SIZE) if (normalidx < Q2_VERTEX_NORMAL_TABLE_SIZE)
{ {
v.X = Q2_VERTEX_NORMAL_TABLE[normalidx][0]; v.X = Q2_VERTEX_NORMAL_TABLE[normalidx][0];
v.Z = Q2_VERTEX_NORMAL_TABLE[normalidx][1]; v.Z = Q2_VERTEX_NORMAL_TABLE[normalidx][1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment