------------------------------------------------------------------------------------------------ Update mesh indices in the node graph
| 102 | // ------------------------------------------------------------------------------------------------ |
| 103 | // Update mesh indices in the node graph |
| 104 | void UpdateMeshIndices(aiNode* node, unsigned int* lookup) |
| 105 | { |
| 106 | for (unsigned int n = 0; n < node->mNumMeshes;++n) |
| 107 | node->mMeshes[n] = lookup[node->mMeshes[n]]; |
| 108 | |
| 109 | for (unsigned int n = 0; n < node->mNumChildren;++n) |
| 110 | UpdateMeshIndices(node->mChildren[n],lookup); |
| 111 | } |
| 112 | |
| 113 | // ------------------------------------------------------------------------------------------------ |
| 114 | // Executes the post processing step on the given imported data. |