for (std::pair<std::string, std::pair<unsigned int, glm::mat4>> pair: mesh.boneMap) {
std::string nodeName = pair.first;
for (std::pair<std::string, std::pair<unsigned int, glm::mat4>> pair: mesh.boneMap) {
std::string nodeName = pair.first;
unsigned int boneId = pair.second.first;
// This is actually an inverse-bind matrix
// i.e. position of the mesh in bone space
unsigned int boneId = pair.second.first;
// This is actually an inverse-bind matrix
// i.e. position of the mesh in bone space
const aiMaterial &material = *scene->mMaterials[i];
materials.push_back(Material(material, *scene, p.progId));
}
const aiMaterial &material = *scene->mMaterials[i];
materials.push_back(Material(material, *scene, p.progId));
}