mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
* Adjustment: Update Assimp version to 5.0.1.
This commit is contained in:
parent
14ebeaf3eb
commit
4758f7bdaf
679 changed files with 50502 additions and 19698 deletions
|
|
@ -2,7 +2,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2020, assimp team
|
||||
Copyright (c) 2006-2019, assimp team
|
||||
|
||||
|
||||
All rights reserved.
|
||||
|
|
@ -367,13 +367,9 @@ float ParseTokenAsFloat(const Token& t, const char*& err_out)
|
|||
// first - next in the fbx token stream comes ',',
|
||||
// which fast_atof could interpret as decimal point.
|
||||
#define MAX_FLOAT_LENGTH 31
|
||||
const size_t length = static_cast<size_t>(t.end()-t.begin());
|
||||
if (length > MAX_FLOAT_LENGTH) {
|
||||
return 0.f;
|
||||
}
|
||||
|
||||
char temp[MAX_FLOAT_LENGTH + 1];
|
||||
std::copy(t.begin(), t.end(), temp);
|
||||
const size_t length = static_cast<size_t>(t.end()-t.begin());
|
||||
std::copy(t.begin(),t.end(),temp);
|
||||
temp[std::min(static_cast<size_t>(MAX_FLOAT_LENGTH),length)] = '\0';
|
||||
|
||||
return fast_atof(temp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue