diff options
| author | Ray <[email protected]> | 2021-05-14 14:01:51 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-05-14 14:01:51 +0200 |
| commit | 232378ed2d6dde857285202ecd31b55c3b4eaeba (patch) | |
| tree | d1fa5cbac191aa4c7fd8634ca0a2c2e5283e32c8 /src/models.c | |
| parent | 3baba7ffe84b184aa0dd555628a8a4eef92a9526 (diff) | |
| parent | 45b0dc63cdc24d4613af4725475bd0575d0dae4c (diff) | |
| download | raylib-232378ed2d6dde857285202ecd31b55c3b4eaeba.tar.gz raylib-232378ed2d6dde857285202ecd31b55c3b4eaeba.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/models.c b/src/models.c index 833597c9..51788d7a 100644 --- a/src/models.c +++ b/src/models.c @@ -4289,10 +4289,10 @@ static Model LoadGLTF(const char *fileName) for (unsigned int a = 0; a < acc->count; a++) { GLTFReadValue(acc, a, readValue, 4, sizeof(unsigned int)); - model.meshes[primitiveIndex].normals[(a*4) + 0] = (float)readValue[0]; - model.meshes[primitiveIndex].normals[(a*4) + 1] = (float)readValue[1]; - model.meshes[primitiveIndex].normals[(a*4) + 2] = (float)readValue[2]; - model.meshes[primitiveIndex].normals[(a*4) + 3] = (float)readValue[3]; + model.meshes[primitiveIndex].boneWeights[(a*4) + 0] = (float)readValue[0]; + model.meshes[primitiveIndex].boneWeights[(a*4) + 1] = (float)readValue[1]; + model.meshes[primitiveIndex].boneWeights[(a*4) + 2] = (float)readValue[2]; + model.meshes[primitiveIndex].boneWeights[(a*4) + 3] = (float)readValue[3]; } } else |
