From a074ca58b339172274c63dbf3bb652bc7ba55c6c Mon Sep 17 00:00:00 2001 From: AndrzejKozik Date: Fri, 4 Nov 2016 08:48:14 +0100 Subject: [PATCH] Keys interpolation fix In line 3073 there was an unproper scope of cast to double. --- code/FBXConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 1f6274d8f..4de880640 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -3070,7 +3070,7 @@ void Converter::InterpolateKeys( aiVectorKey* valOut, const KeyTimeList& keys, c // do the actual interpolation in double-precision arithmetics // because it is a bit sensitive to rounding errors. - const double factor = timeB == timeA ? 0. : static_cast( ( time - timeA ) / ( timeB - timeA ) ); + const double factor = timeB == timeA ? 0. : static_cast( ( time - timeA ) ) / ( timeB - timeA ); const ai_real interpValue = static_cast( valueA + ( valueB - valueA ) * factor ); result[ std::get<2>(kfl) ] = interpValue;