Fix a crash issue in XFileExporter
parent
0f1874d954
commit
a02cc6c98e
|
@ -309,12 +309,12 @@ void XFileExporter::WriteNode( aiNode* pNode)
|
||||||
|
|
||||||
WriteFrameTransform(m);
|
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]]);
|
WriteMesh(mScene->mMeshes[pNode->mMeshes[i]]);
|
||||||
|
|
||||||
// recursive call the Nodes
|
// recursive call the Nodes
|
||||||
for (size_t i = 0; i < pNode->mNumChildren; ++i)
|
for (size_t i = 0; i < pNode->mNumChildren; ++i)
|
||||||
WriteNode( mScene->mRootNode->mChildren[i]);
|
WriteNode(pNode->mChildren[i]);
|
||||||
|
|
||||||
PopTag();
|
PopTag();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue