mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +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.
|
||||
|
|
@ -52,7 +51,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "OptimizeMeshes.h"
|
||||
#include "ProcessHelper.h"
|
||||
#include <assimp/SceneCombiner.h>
|
||||
#include <assimp/Exceptional.h>
|
||||
#include "Exceptional.h"
|
||||
|
||||
using namespace Assimp;
|
||||
|
||||
|
|
@ -107,11 +106,11 @@ void OptimizeMeshesProcess::Execute( aiScene* pScene)
|
|||
{
|
||||
const unsigned int num_old = pScene->mNumMeshes;
|
||||
if (num_old <= 1) {
|
||||
ASSIMP_LOG_DEBUG("Skipping OptimizeMeshesProcess");
|
||||
DefaultLogger::get()->debug("Skipping OptimizeMeshesProcess");
|
||||
return;
|
||||
}
|
||||
|
||||
ASSIMP_LOG_DEBUG("OptimizeMeshesProcess begin");
|
||||
DefaultLogger::get()->debug("OptimizeMeshesProcess begin");
|
||||
mScene = pScene;
|
||||
|
||||
// need to clear persistent members from previous runs
|
||||
|
|
@ -151,9 +150,11 @@ void OptimizeMeshesProcess::Execute( aiScene* pScene)
|
|||
std::copy(output.begin(),output.end(),mScene->mMeshes);
|
||||
|
||||
if (output.size() != num_old) {
|
||||
ASSIMP_LOG_DEBUG_F("OptimizeMeshesProcess finished. Input meshes: ", num_old, ", Output meshes: ", pScene->mNumMeshes);
|
||||
char tmp[512];
|
||||
::ai_snprintf(tmp,512,"OptimizeMeshesProcess finished. Input meshes: %u, Output meshes: %u",num_old,pScene->mNumMeshes);
|
||||
DefaultLogger::get()->info(tmp);
|
||||
} else {
|
||||
ASSIMP_LOG_DEBUG( "OptimizeMeshesProcess finished" );
|
||||
DefaultLogger::get()->debug( "OptimizeMeshesProcess finished" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue