- fbx: fix stupid bug that kills the node hierarchy.

pull/14/head
Alexander Gessler 2012-07-06 16:55:25 +02:00
parent 4bfd5c11d7
commit 2d2a87b70c
1 changed files with 2 additions and 8 deletions

View File

@ -91,14 +91,6 @@ public:
}
}
// dummy root node
out->mRootNode = new aiNode();
out->mRootNode->mNumMeshes = static_cast<unsigned int>(meshes.size());
out->mRootNode->mMeshes = new unsigned int[meshes.size()];
for(unsigned int i = 0; i < out->mRootNode->mNumMeshes; ++i) {
out->mRootNode->mMeshes[i] = i;
}
TransferDataToScene();
}
@ -151,6 +143,8 @@ private:
if(model) {
aiNode* nd = new aiNode();
nodes.push_back(nd);
nd->mName.Set(model->Name());
nd->mParent = &parent;