Fix construction of identity quaternion
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
This commit is contained in:
parent
f931c4996a
commit
37842c7400
@ -214,7 +214,11 @@ namespace detail
|
|||||||
{
|
{
|
||||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genType identity()
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static genType identity()
|
||||||
{
|
{
|
||||||
|
# ifdef GLM_FORCE_QUAT_DATA_WXYZ
|
||||||
return genType(1, 0, 0, 0);
|
return genType(1, 0, 0, 0);
|
||||||
|
# else
|
||||||
|
return genType(0, 0, 0, 1);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user