Fix monkeycrush index;

There was a bugfix that makes model vertex indices 1-based.
This commit is contained in:
bjorn 2022-12-29 20:27:50 -08:00
parent 119935fdd9
commit dc93920816
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ io.write('};\n\n')
io.write('uint16_t monkey_indices[] = {\n ')
for i = 1, model:getMeshIndexCount(1) do
local index = model:getMeshIndex(1, i)
local index = model:getMeshIndex(1, i) - 1
io.write((' %d,'):format(index))
if i % 10 == 0 then
io.write('\n ')