mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
misc changed logic in quat.from_euler
This commit is contained in:
parent
a0963c5ee6
commit
3f5b194fcb
1 changed files with 2 additions and 2 deletions
|
|
@ -49,8 +49,8 @@ static int l_from_euler(lua::State *L)
|
||||||
uint argc = lua::check_argc(L, 1, 2);
|
uint argc = lua::check_argc(L, 1, 2);
|
||||||
glm::vec3 euler = lua::tovec3(L, 1);
|
glm::vec3 euler = lua::tovec3(L, 1);
|
||||||
|
|
||||||
if (argc == 1) return lua::pushquat(L, glm::quat(euler));
|
if (argc == 2) return lua::setquat(L, 2, glm::quat(euler));
|
||||||
return lua::setquat(L, 2, glm::quat(euler));
|
return lua::pushquat(L, glm::quat(euler));
|
||||||
}
|
}
|
||||||
|
|
||||||
const luaL_Reg quatlib[] = {
|
const luaL_Reg quatlib[] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue