Merge pull request #735 from JLouis-B/master

Fix a crash issue in XFileExporter
pull/736/head
Kim Kulling 2015-12-30 21:26:34 +01:00
commit 68b12ac0c4
1 changed files with 2 additions and 2 deletions

View File

@ -309,12 +309,12 @@ void XFileExporter::WriteNode( aiNode* pNode)
WriteFrameTransform(m);
for (size_t i = 0; i < pNode->mNumMeshes; i++)
for (size_t i = 0; i < pNode->mNumMeshes; ++i)
WriteMesh(mScene->mMeshes[pNode->mMeshes[i]]);
// recursive call the Nodes
for (size_t i = 0; i < pNode->mNumChildren; ++i)
WriteNode( mScene->mRootNode->mChildren[i]);
WriteNode(pNode->mChildren[i]);
PopTag();