From 791d415cce12265442540d92175397841d9b5fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20M=C3=BCntzing?= Date: Sat, 28 Dec 2019 22:00:43 +0100 Subject: [PATCH] Normals was not correctly updated when using animated meshes * 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 610e185f1..3e6dadc97 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 } } }