Fix bug with Mesh:setVertices;

This commit is contained in:
bjorn 2020-05-21 00:29:11 -06:00
parent 1185fcf6e1
commit 86ad4f654c
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ static int l_lovrMeshSetVertices(lua_State* L) {
luaL_checktype(L, -1, LUA_TTABLE);
int component = 0;
for (uint32_t j = 0; j < attributeCount; j++) {
const MeshAttribute* attribute = lovrMeshGetAttribute(mesh, i);
const MeshAttribute* attribute = lovrMeshGetAttribute(mesh, j);
if (attribute->buffer != buffer) {
break;
}