Fix luax_readmat4;

This commit is contained in:
bjorn 2024-06-07 13:58:55 -07:00
parent c6971ee68b
commit a85936b29f
1 changed files with 2 additions and 1 deletions

View File

@ -699,7 +699,8 @@ int luax_readmat4(lua_State* L, int index, mat4 m, int scaleComponents) {
case LUA_TNONE:
mat4_identity(m);
return index + 1;
case LUA_TNUMBER: {
case LUA_TNUMBER:
case LUA_TTABLE: {
float S[3], R[4];
mat4_identity(m);
index = luax_readvec3(L, index, m + 12, "table, number, or Mat4");