From b6d54121a58793deeca9e55387d3e0b00faa9708 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 b46c078..19dbae5 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);