FBX importer: try a constant again (ll suffix this time)

pull/1403/head
Tammo Hinrichs 2017-08-25 12:14:03 +02:00
parent 9a12b6ef0b
commit 12a28d33ce
1 changed files with 3 additions and 5 deletions

View File

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