From f8bd56b07f6407dd56aba105f9e51bc0234c6512 Mon Sep 17 00:00:00 2001 From: las3rlars Date: Sun, 29 Dec 2019 12:17:36 +0100 Subject: [PATCH] Normals was not correctly updated when using animated meshes (#1052) * Normal vbo not correctly updated --- src/models.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models.c b/src/models.c index ee163efa3..752489427 100644 --- a/src/models.c +++ b/src/models.c @@ -1164,7 +1164,7 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) // Upload new vertex data to GPU for model drawing rlUpdateBuffer(model.meshes[m].vboId[0], model.meshes[m].animVertices, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex position - rlUpdateBuffer(model.meshes[m].vboId[2], model.meshes[m].animVertices, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex normals + rlUpdateBuffer(model.meshes[m].vboId[2], model.meshes[m].animNormals, model.meshes[m].vertexCount*3*sizeof(float)); // Update vertex normals } } }