mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 07:39:27 +00:00
Updated assimp to latest
This commit is contained in:
parent
25ce4477ce
commit
161bf7f83b
461 changed files with 34662 additions and 30165 deletions
|
|
@ -3,7 +3,8 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2017, assimp team
|
||||
Copyright (c) 2006-2019, assimp team
|
||||
|
||||
|
||||
|
||||
All rights reserved.
|
||||
|
|
@ -55,9 +56,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
// internal headers
|
||||
#include "SIBImporter.h"
|
||||
#include "ByteSwapper.h"
|
||||
#include "StreamReader.h"
|
||||
#include "TinyFormatter.h"
|
||||
#include <assimp/ByteSwapper.h>
|
||||
#include <assimp/StreamReader.h>
|
||||
#include <assimp/TinyFormatter.h>
|
||||
//#include "../contrib/ConvertUTF/ConvertUTF.h"
|
||||
#include "../contrib/utf8cpp/source/utf8.h"
|
||||
#include <assimp/IOSystem.hpp>
|
||||
|
|
@ -149,7 +150,7 @@ static SIBChunk ReadChunk(StreamReaderLE* stream)
|
|||
chunk.Tag = stream->GetU4();
|
||||
chunk.Size = stream->GetU4();
|
||||
if (chunk.Size > stream->GetRemainingSizeToLimit())
|
||||
DefaultLogger::get()->error("SIB: Chunk overflow");
|
||||
ASSIMP_LOG_ERROR("SIB: Chunk overflow");
|
||||
ByteSwap::Swap4(&chunk.Tag);
|
||||
return chunk;
|
||||
}
|
||||
|
|
@ -172,7 +173,7 @@ static void UnknownChunk(StreamReaderLE* /*stream*/, const SIBChunk& chunk)
|
|||
static_cast<char>(chunk.Tag & 0xff), '\0'
|
||||
};
|
||||
|
||||
DefaultLogger::get()->warn((Formatter::format(), "SIB: Skipping unknown '",temp,"' chunk."));
|
||||
ASSIMP_LOG_WARN((Formatter::format(), "SIB: Skipping unknown '",temp,"' chunk."));
|
||||
}
|
||||
|
||||
// Reads a UTF-16LE string and returns it at UTF-8.
|
||||
|
|
@ -588,7 +589,7 @@ static void ReadShape(SIB* sib, StreamReaderLE* stream)
|
|||
|
||||
if (mtl >= meshes.size())
|
||||
{
|
||||
DefaultLogger::get()->error("SIB: Face material index is invalid.");
|
||||
ASSIMP_LOG_ERROR("SIB: Face material index is invalid.");
|
||||
mtl = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue