glTF2 support targetNames

This commit is contained in:
Timur Umayev
2020-04-15 09:39:46 +01:00
parent 9b694a8645
commit 69f8d47941
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -472,6 +472,9 @@ void glTF2Importer::ImportMeshes(glTF2::Asset &r) {
if (mesh.weights.size() > i) {
aiAnimMesh.mWeight = mesh.weights[i];
}
if (mesh.targetNames.size() > i) {
aiAnimMesh.mName = mesh.targetNames[i];
}
}
}