mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
Restrict the Eps precision change only to Pandora platform
This commit is contained in:
parent
031223de35
commit
0d4437a1ac
|
@ -370,7 +370,11 @@ void Quaternion<Type>::FromEuler(const Vector<Type, 3> &a)
|
|||
template<class Type>
|
||||
Type Quaternion<Type>::EPS(Type orig) const
|
||||
{
|
||||
#ifdef PLATFORM_PANDORA
|
||||
if ((orig <= 1e-4f) && (orig >= -1e-4f))
|
||||
#else
|
||||
if ((orig <= 10e-6f) && (orig >= -10e-6f))
|
||||
#endif
|
||||
return(0.0f);
|
||||
|
||||
return(orig);
|
||||
|
|
Loading…
Reference in New Issue
Block a user