From 5ea9de5d3e62e7495836dbbaa610f88d1566bcd1 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Sat, 25 Aug 2012 16:13:19 +0200 Subject: [PATCH] - fbx: return time in seconds. --- code/FBXConverter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 4feace815..c24be5ba9 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -61,7 +61,7 @@ namespace FBX { #define MAGIC_NODE_TAG "_$AssimpFbx$" -#define CONVERT_FBX_TIME(time) static_cast(time) / 46186158 +#define CONVERT_FBX_TIME(time) static_cast(time) / 46186158000L // XXX vc9's debugger won't step into anonymous namespaces //namespace { @@ -1677,7 +1677,7 @@ private: // for some mysterious reason, mDuration is simply the maximum key -- the // validator always assumes animations to start at zero. anim->mDuration = max_time /*- min_time */; - anim->mTicksPerSecond = 1000.0; + anim->mTicksPerSecond = 1.0; }