From 18c0e41d8f50d98bf1765de211d562238a743b06 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 13 Jan 2016 10:04:24 +0100 Subject: [PATCH] Colladaloader: fix usage of floorf. --- code/ColladaLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/ColladaLoader.cpp b/code/ColladaLoader.cpp index 77a7a7ed8..e6dd3ecad 100644 --- a/code/ColladaLoader.cpp +++ b/code/ColladaLoader.cpp @@ -55,6 +55,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "Defines.h" #include "time.h" +#include "math.h" #include #include "../include/assimp/DefaultLogger.hpp" #include "../include/assimp/Importer.hpp" @@ -1181,7 +1182,7 @@ void ColladaLoader::CreateAnimation( aiScene* pScene, const ColladaParser& pPars float last_eval_angle = last_key_angle + (cur_key_angle - last_key_angle) * (time - last_key_time) / (cur_key_time - last_key_time); float delta = std::fabs(cur_key_angle - last_eval_angle); if (delta >= 180.0f) { - int subSampleCount = static_cast(std::floorf(delta / 90.0f)); + int subSampleCount = static_cast(floorf(delta / 90.0f)); if (cur_key_time != time) { float nextSampleTime = time + (cur_key_time - time) / subSampleCount; nextTime = std::min(nextTime, nextSampleTime);