From: AndrzejKozik Date: Fri, 4 Nov 2016 07:48:14 +0000 (+0100) Subject: Keys interpolation fix X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a074ca58b339172274c63dbf3bb652bc7ba55c6c;p=platform%2Fupstream%2Fassimp.git Keys interpolation fix In line 3073 there was an unproper scope of cast to double. --- diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 1f6274d..4de8806 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;