Fix a crash issue in XFileExporter

pull/735/head
JLouis-B 2015-12-30 19:01:04 +01:00
parent 0f1874d954
commit a02cc6c98e
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();