diff --git a/code/PretransformVertices.cpp b/code/PretransformVertices.cpp index cfaa2c24f..1eaa1ab17 100644 --- a/code/PretransformVertices.cpp +++ b/code/PretransformVertices.cpp @@ -391,6 +391,8 @@ void PretransformVertices::BuildWCSMeshes(std::vector& out, aiMesh** in ntz->mBones = reinterpret_cast (&node->mTransformation); out.push_back(ntz); + + node->mMeshes[i] = numIn + out.size() - 1; } } }