From 484d49434beed41fe72ec2ba3edcb8974a431bb7 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 17 Apr 2016 09:45:01 +0200 Subject: [PATCH] Restrict the Eps precision change only to Pandora platform --- Sources/Engine/Math/Quaternion.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Engine/Math/Quaternion.h b/Sources/Engine/Math/Quaternion.h index d9d51e4..abb483b 100755 --- a/Sources/Engine/Math/Quaternion.h +++ b/Sources/Engine/Math/Quaternion.h @@ -370,7 +370,11 @@ void Quaternion::FromEuler(const Vector &a) template Type Quaternion::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);