bugfix: handling possible nullptr access.

update: replace clear be resize( 0 ) at some places to avoid double allocations ( only a micro optimization ).

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
This commit is contained in:
Kim Kulling
2014-07-04 00:22:13 +02:00
parent b3b732c12b
commit c6b516b68b
4 changed files with 79 additions and 37 deletions

View File

@@ -111,7 +111,7 @@ void DeboneProcess::Execute( aiScene* pScene)
if(numSplits) {
// we need to do something. Let's go.
mSubMeshIndices.clear();
//mSubMeshIndices.clear(); really needed?
mSubMeshIndices.resize(pScene->mNumMeshes);
// build a new array of meshes for the scene