mirror of https://github.com/bjornbytes/lovr.git
Fix luax_readmesh with Model;
This commit is contained in:
parent
eb8b559e88
commit
4a2c315bdb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue