Make Model draw start vertex 1-indexed;

That way it matches Pass:mesh.
This commit is contained in:
bjorn 2022-09-01 21:54:34 -07:00
parent e57d76c6e9
commit ce9662fa7e
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ static int l_lovrModelGetNodeDraw(lua_State* L) {
lovrModelGetNodeDraw(model, node, index, &draw);
luax_pushenum(L, MeshMode, draw.mode);
luax_pushtype(L, Material, draw.material);
lua_pushinteger(L, draw.start);
lua_pushinteger(L, draw.start + 1);
lua_pushinteger(L, draw.count);
if (draw.indexed) {
lua_pushinteger(L, draw.base);