diff options
author | sfan5 <sfan5@live.de> | 2021-06-19 22:22:47 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-06-19 22:22:47 +0200 |
commit | 0500a7798bf2cb4d405dc792e1110ab3340124c1 (patch) | |
tree | da293799b8425bb2d0a86f0a4c590035a8686cc3 /source/Irrlicht/CXMeshFileLoader.cpp | |
parent | c84d8acff9b089aaf0fb407542f95e8ff8e5dd60 (diff) | |
download | irrlicht-0500a7798bf2cb4d405dc792e1110ab3340124c1.tar.xz |
CXMeshFileLoader: initialize normals to zero during loading
Diffstat (limited to 'source/Irrlicht/CXMeshFileLoader.cpp')
-rw-r--r-- | source/Irrlicht/CXMeshFileLoader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Irrlicht/CXMeshFileLoader.cpp b/source/Irrlicht/CXMeshFileLoader.cpp index feddb40..bb25d6f 100644 --- a/source/Irrlicht/CXMeshFileLoader.cpp +++ b/source/Irrlicht/CXMeshFileLoader.cpp @@ -764,6 +764,7 @@ bool CXMeshFileLoader::parseDataObjectMesh(SXMesh &mesh) {
readVector3(mesh.Vertices[n].Pos);
mesh.Vertices[n].Color=0xFFFFFFFF;
+ mesh.Vertices[n].Normal=core::vector3df(0.0f);
}
if (!checkForTwoFollowingSemicolons())
|