Generate container for skeleton during FBX-Import

kimkulling/create_skeleton_data_issue_4015
Kim Kulling 2022-04-28 21:19:10 +02:00
parent 6cdd1d3cc6
commit 0afb594f40
1 changed files with 2 additions and 1 deletions

View File

@ -1153,7 +1153,8 @@ unsigned int FBXConverter::ConvertMeshSingleMaterial(const MeshGeometry &mesh, c
if (doc.Settings().readWeights && mesh.DeformerSkin() != nullptr && !doc.Settings().useSkeleton) {
ConvertWeights(out_mesh, mesh, absolute_transform, parent, NO_MATERIAL_SEPARATION, nullptr);
} else if (doc.Settings().readWeights && mesh.DeformerSkin() != nullptr && doc.Settings().useSkeleton) {
ConvertWeightsToSkeleton(out_mesh, mesh, absolute_transform, parent, NO_MATERIAL_SEPARATION, nullptr);
SkeletonBoneContainer sbc;
ConvertWeightsToSkeleton(out_mesh, mesh, absolute_transform, parent, NO_MATERIAL_SEPARATION, nullptr, sbc);
}
std::vector<aiAnimMesh *> animMeshes;