2008-10-02 15:22:38 +00:00
|
|
|
/*
|
|
|
|
---------------------------------------------------------------------------
|
2012-02-03 03:38:30 +00:00
|
|
|
Open Asset Import Library (assimp)
|
2008-10-02 15:22:38 +00:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2015-06-28 19:48:25 +00:00
|
|
|
Copyright (c) 2006-2015, assimp team
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
with or without modification, are permitted provided that the following
|
|
|
|
conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
2012-02-03 03:38:30 +00:00
|
|
|
* Neither the name of the assimp team, nor the names of its
|
2008-10-02 15:22:38 +00:00
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
derived from this software without specific prior
|
2012-02-03 03:38:30 +00:00
|
|
|
written permission of the assimp team.
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
/** @file Implementation of the post processing step to remove
|
|
|
|
* any parts of the mesh structure from the imported data.
|
|
|
|
*/
|
2008-10-13 16:45:48 +00:00
|
|
|
|
2015-04-15 23:00:17 +00:00
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
#include "RemoveVCProcess.h"
|
2015-04-15 23:00:17 +00:00
|
|
|
#include "../include/assimp/postprocess.h"
|
|
|
|
#include "../include/assimp/DefaultLogger.hpp"
|
|
|
|
#include "../include/assimp/scene.h"
|
2015-06-28 19:48:25 +00:00
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
using namespace Assimp;
|
|
|
|
|
2008-10-13 16:45:48 +00:00
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Constructor to be privately used by Importer
|
2015-05-24 15:48:15 +00:00
|
|
|
RemoveVCProcess::RemoveVCProcess() :
|
|
|
|
configDeleteFlags()
|
|
|
|
, mScene()
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
{}
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Destructor, private as well
|
|
|
|
RemoveVCProcess::~RemoveVCProcess()
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
{}
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Returns whether the processing step is present in the given flag field.
|
|
|
|
bool RemoveVCProcess::IsActive( unsigned int pFlags) const
|
|
|
|
{
|
2008-10-13 16:45:48 +00:00
|
|
|
return (pFlags & aiProcess_RemoveComponent) != 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Small helper function to delete all elements in a T** aray using delete
|
|
|
|
template <typename T>
|
2008-11-26 13:17:39 +00:00
|
|
|
inline void ArrayDelete(T**& in, unsigned int& num)
|
2008-10-13 16:45:48 +00:00
|
|
|
{
|
|
|
|
for (unsigned int i = 0; i < num; ++i)
|
|
|
|
delete in[i];
|
|
|
|
|
|
|
|
delete[] in;
|
|
|
|
in = NULL;
|
2008-11-26 13:17:39 +00:00
|
|
|
num = 0;
|
2008-10-13 16:45:48 +00:00
|
|
|
}
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
#if 0
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Updates the node graph - removes all nodes which have the "remove" flag set and the
|
|
|
|
// "don't remove" flag not set. Nodes with meshes are never deleted.
|
|
|
|
bool UpdateNodeGraph(aiNode* node,std::list<aiNode*>& childsOfParent,bool root)
|
|
|
|
{
|
2015-03-02 22:44:02 +00:00
|
|
|
bool b = false;
|
2009-01-12 22:06:54 +00:00
|
|
|
|
|
|
|
std::list<aiNode*> mine;
|
|
|
|
for (unsigned int i = 0; i < node->mNumChildren;++i)
|
|
|
|
{
|
|
|
|
if(UpdateNodeGraph(node->mChildren[i],mine,false))
|
|
|
|
b = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// somewhat tricky ... mNumMeshes must be originally 0 and MSB2 may not be set,
|
|
|
|
// so we can do a simple comparison against MSB here
|
|
|
|
if (!root && AI_RC_UINT_MSB == node->mNumMeshes )
|
|
|
|
{
|
|
|
|
// this node needs to be removed
|
|
|
|
if(node->mNumChildren)
|
|
|
|
{
|
|
|
|
childsOfParent.insert(childsOfParent.end(),mine.begin(),mine.end());
|
|
|
|
|
|
|
|
// set all children to NULL to make sure they are not deleted when we delete ourself
|
|
|
|
for (unsigned int i = 0; i < node->mNumChildren;++i)
|
|
|
|
node->mChildren[i] = NULL;
|
|
|
|
}
|
|
|
|
b = true;
|
|
|
|
delete node;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
AI_RC_UNMASK(node->mNumMeshes);
|
|
|
|
childsOfParent.push_back(node);
|
|
|
|
|
|
|
|
if (b)
|
|
|
|
{
|
|
|
|
// reallocate the array of our children here
|
|
|
|
node->mNumChildren = (unsigned int)mine.size();
|
|
|
|
aiNode** const children = new aiNode*[mine.size()];
|
|
|
|
aiNode** ptr = children;
|
|
|
|
|
|
|
|
for (std::list<aiNode*>::iterator it = mine.begin(), end = mine.end();
|
|
|
|
it != end; ++it)
|
|
|
|
{
|
|
|
|
*ptr++ = *it;
|
|
|
|
}
|
|
|
|
delete[] node->mChildren;
|
|
|
|
node->mChildren = children;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
#endif
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Executes the post processing step on the given imported data.
|
|
|
|
void RemoveVCProcess::Execute( aiScene* pScene)
|
|
|
|
{
|
|
|
|
DefaultLogger::get()->debug("RemoveVCProcess begin");
|
2010-02-06 23:52:41 +00:00
|
|
|
bool bHas = false; //,bMasked = false;
|
2008-10-13 16:45:48 +00:00
|
|
|
|
|
|
|
mScene = pScene;
|
|
|
|
|
|
|
|
// handle animations
|
|
|
|
if ( configDeleteFlags & aiComponent_ANIMATIONS)
|
|
|
|
{
|
2008-11-26 13:17:39 +00:00
|
|
|
|
2008-10-13 16:45:48 +00:00
|
|
|
bHas = true;
|
|
|
|
ArrayDelete(pScene->mAnimations,pScene->mNumAnimations);
|
|
|
|
}
|
|
|
|
|
|
|
|
// handle textures
|
|
|
|
if ( configDeleteFlags & aiComponent_TEXTURES)
|
|
|
|
{
|
|
|
|
bHas = true;
|
|
|
|
ArrayDelete(pScene->mTextures,pScene->mNumTextures);
|
|
|
|
}
|
2008-10-19 11:32:33 +00:00
|
|
|
|
|
|
|
// handle materials
|
|
|
|
if ( configDeleteFlags & aiComponent_MATERIALS && pScene->mNumMaterials)
|
|
|
|
{
|
|
|
|
bHas = true;
|
|
|
|
for (unsigned int i = 1;i < pScene->mNumMaterials;++i)
|
|
|
|
delete pScene->mMaterials[i];
|
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
pScene->mNumMaterials = 1;
|
2011-08-22 20:22:51 +00:00
|
|
|
aiMaterial* helper = (aiMaterial*) pScene->mMaterials[0];
|
2009-01-12 22:06:54 +00:00
|
|
|
ai_assert(NULL != helper);
|
2008-10-19 11:32:33 +00:00
|
|
|
helper->Clear();
|
|
|
|
|
|
|
|
// gray
|
|
|
|
aiColor3D clr(0.6f,0.6f,0.6f);
|
|
|
|
helper->AddProperty(&clr,1,AI_MATKEY_COLOR_DIFFUSE);
|
|
|
|
|
|
|
|
// add a small ambient color value
|
|
|
|
clr = aiColor3D(0.05f,0.05f,0.05f);
|
|
|
|
helper->AddProperty(&clr,1,AI_MATKEY_COLOR_AMBIENT);
|
|
|
|
|
|
|
|
aiString s;
|
|
|
|
s.Set("Dummy_MaterialsRemoved");
|
|
|
|
helper->AddProperty(&s,AI_MATKEY_NAME);
|
|
|
|
}
|
|
|
|
|
2008-10-13 16:45:48 +00:00
|
|
|
// handle light sources
|
|
|
|
if ( configDeleteFlags & aiComponent_LIGHTS)
|
|
|
|
{
|
2008-11-26 13:17:39 +00:00
|
|
|
bHas = true;
|
2008-10-13 16:45:48 +00:00
|
|
|
ArrayDelete(pScene->mLights,pScene->mNumLights);
|
|
|
|
}
|
|
|
|
|
|
|
|
// handle camneras
|
2008-10-19 11:32:33 +00:00
|
|
|
if ( configDeleteFlags & aiComponent_CAMERAS)
|
2008-10-13 16:45:48 +00:00
|
|
|
{
|
|
|
|
bHas = true;
|
|
|
|
ArrayDelete(pScene->mCameras,pScene->mNumCameras);
|
|
|
|
}
|
2008-10-19 11:32:33 +00:00
|
|
|
|
2008-10-13 16:45:48 +00:00
|
|
|
// handle meshes
|
|
|
|
if (configDeleteFlags & aiComponent_MESHES)
|
|
|
|
{
|
|
|
|
bHas = true;
|
|
|
|
ArrayDelete(pScene->mMeshes,pScene->mNumMeshes);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
for( unsigned int a = 0; a < pScene->mNumMeshes; a++)
|
|
|
|
{
|
2008-11-26 13:17:39 +00:00
|
|
|
if( ProcessMesh( pScene->mMeshes[a]))
|
2008-10-13 16:45:48 +00:00
|
|
|
bHas = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
|
2008-10-19 11:32:33 +00:00
|
|
|
// now check whether the result is still a full scene
|
|
|
|
if (!pScene->mNumMeshes || !pScene->mNumMaterials)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
2008-10-19 11:32:33 +00:00
|
|
|
pScene->mFlags |= AI_SCENE_FLAGS_INCOMPLETE;
|
|
|
|
DefaultLogger::get()->debug("Setting AI_SCENE_FLAGS_INCOMPLETE flag");
|
2009-01-12 22:06:54 +00:00
|
|
|
|
|
|
|
// If we have no meshes anymore we should also clear another flag ...
|
|
|
|
if (!pScene->mNumMeshes)
|
|
|
|
pScene->mFlags &= ~AI_SCENE_FLAGS_NON_VERBOSE_FORMAT;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
2008-10-13 16:45:48 +00:00
|
|
|
if (bHas)DefaultLogger::get()->info("RemoveVCProcess finished. Data structure cleanup has been done.");
|
|
|
|
else DefaultLogger::get()->debug("RemoveVCProcess finished. Nothing to be done ...");
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Setup configuration properties for the step
|
|
|
|
void RemoveVCProcess::SetupProperties(const Importer* pImp)
|
|
|
|
{
|
|
|
|
configDeleteFlags = pImp->GetPropertyInteger(AI_CONFIG_PP_RVC_FLAGS,0x0);
|
|
|
|
if (!configDeleteFlags)
|
|
|
|
{
|
2008-10-13 16:45:48 +00:00
|
|
|
DefaultLogger::get()->warn("RemoveVCProcess: AI_CONFIG_PP_RVC_FLAGS is zero.");
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// Executes the post processing step on the given imported data.
|
|
|
|
bool RemoveVCProcess::ProcessMesh(aiMesh* pMesh)
|
|
|
|
{
|
2008-10-13 16:45:48 +00:00
|
|
|
bool ret = false;
|
2008-10-02 15:22:38 +00:00
|
|
|
|
2008-10-19 11:32:33 +00:00
|
|
|
// if all materials have been deleted let the material
|
|
|
|
// index of the mesh point to the created default material
|
|
|
|
if ( configDeleteFlags & aiComponent_MATERIALS)
|
|
|
|
pMesh->mMaterialIndex = 0;
|
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
// handle normals
|
2008-10-13 16:45:48 +00:00
|
|
|
if (configDeleteFlags & aiComponent_NORMALS && pMesh->mNormals)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
delete[] pMesh->mNormals;
|
|
|
|
pMesh->mNormals = NULL;
|
2008-10-13 16:45:48 +00:00
|
|
|
ret = true;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// handle tangents and bitangents
|
2008-10-13 16:45:48 +00:00
|
|
|
if (configDeleteFlags & aiComponent_TANGENTS_AND_BITANGENTS && pMesh->mTangents)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
delete[] pMesh->mTangents;
|
|
|
|
pMesh->mTangents = NULL;
|
|
|
|
|
|
|
|
delete[] pMesh->mBitangents;
|
|
|
|
pMesh->mBitangents = NULL;
|
2008-10-13 16:45:48 +00:00
|
|
|
ret = true;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// handle texture coordinates
|
2015-03-02 22:44:02 +00:00
|
|
|
bool b = (0 != (configDeleteFlags & aiComponent_TEXCOORDS));
|
2009-01-12 22:06:54 +00:00
|
|
|
for (unsigned int i = 0, real = 0; real < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++real)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
if (!pMesh->mTextureCoords[i])break;
|
2009-01-12 22:06:54 +00:00
|
|
|
if (configDeleteFlags & aiComponent_TEXCOORDSn(real) || b)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
delete pMesh->mTextureCoords[i];
|
|
|
|
pMesh->mTextureCoords[i] = NULL;
|
2008-10-13 16:45:48 +00:00
|
|
|
ret = true;
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
if (!b)
|
|
|
|
{
|
|
|
|
// collapse the rest of the array
|
2009-01-12 22:06:54 +00:00
|
|
|
for (unsigned int a = i+1; a < AI_MAX_NUMBER_OF_TEXTURECOORDS;++a)
|
2008-10-02 15:22:38 +00:00
|
|
|
pMesh->mTextureCoords[a-1] = pMesh->mTextureCoords[a];
|
2009-01-12 22:06:54 +00:00
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
pMesh->mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS-1] = NULL;
|
2009-01-12 22:06:54 +00:00
|
|
|
continue;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
}
|
2009-01-12 22:06:54 +00:00
|
|
|
++i;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// handle vertex colors
|
2008-10-13 16:45:48 +00:00
|
|
|
b = (0 != (configDeleteFlags & aiComponent_COLORS));
|
2009-01-12 22:06:54 +00:00
|
|
|
for (unsigned int i = 0, real = 0; real < AI_MAX_NUMBER_OF_COLOR_SETS; ++real)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
if (!pMesh->mColors[i])break;
|
2008-10-13 16:45:48 +00:00
|
|
|
if (configDeleteFlags & aiComponent_COLORSn(i) || b)
|
2008-10-02 15:22:38 +00:00
|
|
|
{
|
|
|
|
delete pMesh->mColors[i];
|
|
|
|
pMesh->mColors[i] = NULL;
|
2008-10-13 16:45:48 +00:00
|
|
|
ret = true;
|
2008-10-02 15:22:38 +00:00
|
|
|
|
|
|
|
if (!b)
|
|
|
|
{
|
|
|
|
// collapse the rest of the array
|
2009-01-12 22:06:54 +00:00
|
|
|
for (unsigned int a = i+1; a < AI_MAX_NUMBER_OF_COLOR_SETS;++a)
|
2008-10-02 15:22:38 +00:00
|
|
|
pMesh->mColors[a-1] = pMesh->mColors[a];
|
2009-01-12 22:06:54 +00:00
|
|
|
|
2008-10-02 15:22:38 +00:00
|
|
|
pMesh->mColors[AI_MAX_NUMBER_OF_COLOR_SETS-1] = NULL;
|
2009-01-12 22:06:54 +00:00
|
|
|
continue;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
|
|
|
}
|
2009-01-12 22:06:54 +00:00
|
|
|
++i;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|
2008-10-13 16:45:48 +00:00
|
|
|
|
|
|
|
// handle bones
|
|
|
|
if (configDeleteFlags & aiComponent_BONEWEIGHTS && pMesh->mBones)
|
|
|
|
{
|
|
|
|
ArrayDelete(pMesh->mBones,pMesh->mNumBones);
|
|
|
|
ret = true;
|
|
|
|
}
|
|
|
|
return ret;
|
2008-10-02 15:22:38 +00:00
|
|
|
}
|