mirror of https://github.com/bjornbytes/lovr.git
Fix bug with Mesh:setVertices;
This commit is contained in:
parent
1185fcf6e1
commit
86ad4f654c
|
@ -315,7 +315,7 @@ static int l_lovrMeshSetVertices(lua_State* L) {
|
||||||
luaL_checktype(L, -1, LUA_TTABLE);
|
luaL_checktype(L, -1, LUA_TTABLE);
|
||||||
int component = 0;
|
int component = 0;
|
||||||
for (uint32_t j = 0; j < attributeCount; j++) {
|
for (uint32_t j = 0; j < attributeCount; j++) {
|
||||||
const MeshAttribute* attribute = lovrMeshGetAttribute(mesh, i);
|
const MeshAttribute* attribute = lovrMeshGetAttribute(mesh, j);
|
||||||
if (attribute->buffer != buffer) {
|
if (attribute->buffer != buffer) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue