mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-03 04:53:35 +00:00
Fix luax_readmat4;
This commit is contained in:
parent
c6971ee68b
commit
a85936b29f
|
@ -699,7 +699,8 @@ int luax_readmat4(lua_State* L, int index, mat4 m, int scaleComponents) {
|
||||||
case LUA_TNONE:
|
case LUA_TNONE:
|
||||||
mat4_identity(m);
|
mat4_identity(m);
|
||||||
return index + 1;
|
return index + 1;
|
||||||
case LUA_TNUMBER: {
|
case LUA_TNUMBER:
|
||||||
|
case LUA_TTABLE: {
|
||||||
float S[3], R[4];
|
float S[3], R[4];
|
||||||
mat4_identity(m);
|
mat4_identity(m);
|
||||||
index = luax_readvec3(L, index, m + 12, "table, number, or Mat4");
|
index = luax_readvec3(L, index, m + 12, "table, number, or Mat4");
|
||||||
|
|
Loading…
Reference in a new issue