Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Aug 9, 2024
1 parent 51b6c0b commit 5cdc270
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/FBX/FBXSDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,10 @@ struct NewFBXExtractKeyframe : INode {
glm::mat4 parent_matrix = glm::mat4(1);
if (parent_names.count(boneName)) {
int pi = deformBoneNameMapping[parent_names[boneName]];
parent_matrix = restPointTransforms[pi] * deformPointTransformsInv[pi];
if (restBoneNameMapping.count(parent_names[boneName])) {
auto rpi = restBoneNameMapping[parent_names[boneName]];
parent_matrix = restPointTransforms[rpi] * deformPointTransformsInv[pi];
}
}
glm::mat4 restPointTransformInv = restPointTransformsInv[restBoneNameMapping[boneName]];
glm::mat4 deformPointTransform = deformPointTransforms[i];
Expand Down

0 comments on commit 5cdc270

Please sign in to comment.