Fix luax_readmesh with Model;

This commit is contained in:
bjorn 2021-03-30 12:48:18 -06:00
parent eb8b559e88
commit 4a2c315bdb
1 changed files with 1 additions and 0 deletions

View File

@ -444,6 +444,7 @@ int luax_readmesh(lua_State* L, int index, float** vertices, uint32_t* vertexCou
if (model) {
lovrModelGetTriangles(model, vertices, vertexCount, indices, indexCount);
*shouldFree = false;
return index + 1;
}
#endif