mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-16 21:23:46 +00:00
Just the functional assimp lib rather than the entire assimp repository unnecessarily.
This commit is contained in:
parent
0f7641a282
commit
e9ea38eda3
1747 changed files with 9012 additions and 925008 deletions
|
|
@ -3,8 +3,7 @@
|
|||
Open Asset Import Library (assimp)
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006-2018, assimp team
|
||||
|
||||
Copyright (c) 2006-2017, assimp team
|
||||
|
||||
|
||||
All rights reserved.
|
||||
|
|
@ -53,9 +52,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
|
||||
|
||||
#include "UnrealLoader.h"
|
||||
#include <assimp/StreamReader.h>
|
||||
#include <assimp/ParsingUtils.h>
|
||||
#include <assimp/fast_atof.h>
|
||||
#include "StreamReader.h"
|
||||
#include "ParsingUtils.h"
|
||||
#include "fast_atof.h"
|
||||
#include "ConvertToLHProcess.h"
|
||||
|
||||
#include <assimp/Importer.hpp>
|
||||
|
|
@ -153,9 +152,9 @@ void UnrealImporter::InternReadFile( const std::string& pFile,
|
|||
a_path = extension+"_a.3d";
|
||||
uc_path = extension+".uc";
|
||||
|
||||
ASSIMP_LOG_DEBUG_F( "UNREAL: data file is ", d_path);
|
||||
ASSIMP_LOG_DEBUG_F("UNREAL: aniv file is ", a_path);
|
||||
ASSIMP_LOG_DEBUG_F("UNREAL: uc file is ", uc_path);
|
||||
DefaultLogger::get()->debug("UNREAL: data file is " + d_path);
|
||||
DefaultLogger::get()->debug("UNREAL: aniv file is " + a_path);
|
||||
DefaultLogger::get()->debug("UNREAL: uc file is " + uc_path);
|
||||
|
||||
// and open the files ... we can't live without them
|
||||
std::unique_ptr<IOStream> p(pIOHandler->Open(d_path));
|
||||
|
|
@ -179,7 +178,7 @@ void UnrealImporter::InternReadFile( const std::string& pFile,
|
|||
|
||||
tri.mVertex[i] = d_reader.GetI2();
|
||||
if (tri.mVertex[i] >= numTris) {
|
||||
ASSIMP_LOG_WARN("UNREAL: vertex index out of range");
|
||||
DefaultLogger::get()->warn("UNREAL: vertex index out of range");
|
||||
tri.mVertex[i] = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -324,7 +323,7 @@ void UnrealImporter::InternReadFile( const std::string& pFile,
|
|||
}
|
||||
}
|
||||
else {
|
||||
ASSIMP_LOG_ERROR("Unable to open .uc file");
|
||||
DefaultLogger::get()->error("Unable to open .uc file");
|
||||
}
|
||||
|
||||
std::vector<Unreal::TempMat> materials;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue