From 12a28d33ce205c9ed61fa14e5687e679f820d6e4 Mon Sep 17 00:00:00 2001 From: Tammo Hinrichs Date: Fri, 25 Aug 2017 12:14:03 +0200 Subject: [PATCH] FBX importer: try a constant again (ll suffix this time) --- code/FBXConverter.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index d6b21daed..f53ae0218 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -61,8 +61,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#include - namespace Assimp { namespace FBX { @@ -2373,9 +2371,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 20000 is for safety because GenerateNodeAnimations uses an epsilon of 10000 - start_time = INT64_MIN + 20000; - stop_time = INT64_MAX - 20000; + // the numbers are INT64_MIN/MAX, the 20000 is for safety because GenerateNodeAnimations uses an epsilon of 10000 + start_time = -9223372036854775807ll + 20000; + stop_time = 9223372036854775807ll - 20000; } try {