forked from Mirrorlandia_minetest/irrlicht
CXMeshFileLoader: initialize normals to zero during loading
This commit is contained in:
parent
c84d8acff9
commit
0500a7798b
@ -764,6 +764,7 @@ bool CXMeshFileLoader::parseDataObjectMesh(SXMesh &mesh)
|
|||||||
{
|
{
|
||||||
readVector3(mesh.Vertices[n].Pos);
|
readVector3(mesh.Vertices[n].Pos);
|
||||||
mesh.Vertices[n].Color=0xFFFFFFFF;
|
mesh.Vertices[n].Color=0xFFFFFFFF;
|
||||||
|
mesh.Vertices[n].Normal=core::vector3df(0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkForTwoFollowingSemicolons())
|
if (!checkForTwoFollowingSemicolons())
|
||||||
|
Loading…
Reference in New Issue
Block a user