浏览代码

FBX importer: Back to INT64_MIN but include <stdint.h> also.

Tammo Hinrichs 8 年之前
父节点
当前提交
9a12b6ef0b
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      code/FBXConverter.cpp

+ 5 - 3
code/FBXConverter.cpp

@@ -61,6 +61,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <iterator>
 #include <vector>
 
+#include <stdint.h>
+
 namespace Assimp {
 namespace FBX {
 
@@ -2371,9 +2373,9 @@ void Converter::ConvertAnimationStack( const AnimationStack& st )
     bool has_local_startstop = start_time != 0 || stop_time != 0;
     if ( !has_local_startstop ) {
         // no time range given, so accept every keyframe and use the actual min/max time
-        // the numbers are INT64_MIN/MAX, the 20000 is for safety because GenerateNodeAnimations uses an epsilon of 10000
-        start_time = -9223372036854775807i64 + 20000;
-        stop_time = 9223372036854775807i64 - 20000;
+        // the 20000 is for safety because GenerateNodeAnimations uses an epsilon of 10000
+        start_time = INT64_MIN + 20000;
+        stop_time = INT64_MAX - 20000;
     }
 
     try {