From 7bd3546aa9ec56bbd00aeb36b120639619b7f3d1 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sun, 4 Dec 2022 17:58:49 -0800 Subject: [PATCH] Fix Pass:line ignoring temporary vectors in tables; --- src/api/l_graphics_pass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/l_graphics_pass.c b/src/api/l_graphics_pass.c index 332c4aec..4996e104 100644 --- a/src/api/l_graphics_pass.c +++ b/src/api/l_graphics_pass.c @@ -555,7 +555,7 @@ static void luax_readvertices(lua_State* L, int index, float* vertices, uint32_t *vertices++ = luax_tofloat(L, -1); lua_pop(L, 1); } - } else if (innerType == LUA_TUSERDATA) { + } else if (innerType == LUA_TUSERDATA || innerType == LUA_TLIGHTUSERDATA) { for (uint32_t i = 0; i < count; i++) { lua_rawgeti(L, index, i + 1); vec3_init(vertices, luax_checkvector(L, -1, V_VEC3, NULL));