Fixed another md2 normals problem found by cyberwan.
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@722 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
64e740728c
commit
3931131e64
@ -641,8 +641,8 @@ bool CAnimatedMeshMD2::loadFile(io::IReadFile* file)
|
||||
|
||||
vertices[i].push_back(v);
|
||||
|
||||
s32 normalidx = frame->vertices[j].lightNormalIndex;
|
||||
if (normalidx > 0 && normalidx < Q2_VERTEX_NORMAL_TABLE_SIZE)
|
||||
u8 normalidx = frame->vertices[j].lightNormalIndex;
|
||||
if (normalidx < Q2_VERTEX_NORMAL_TABLE_SIZE)
|
||||
{
|
||||
v.X = Q2_VERTEX_NORMAL_TABLE[normalidx][0];
|
||||
v.Z = Q2_VERTEX_NORMAL_TABLE[normalidx][1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user