In Assimp: fixed a bug in Pretransform Vertices post process step where newly created meshes of different instances of the same original meshes where not referenced appropriately by their parent node

pull/261/head
Léo Terziman 2014-01-31 11:12:18 +01:00
parent ca2314baa8
commit 586f1646c5
1 changed files with 2 additions and 0 deletions

View File

@ -391,6 +391,8 @@ void PretransformVertices::BuildWCSMeshes(std::vector<aiMesh*>& out, aiMesh** in
ntz->mBones = reinterpret_cast<aiBone**> (&node->mTransformation);
out.push_back(ntz);
node->mMeshes[i] = numIn + out.size() - 1;
}
}
}