Skip to content

Commit

Permalink
fixed frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Taku3939 committed Jan 17, 2022
1 parent 4295d47 commit e82d579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ void AnimateNurbs(FbxNode *pNurbs, FbxScene *pScene) {
for (const auto frame: *vmd->MorphFrames) {
if (std::string(frame.SkinName) == std::string(morphList[i])) {
// printf("%ld %s\n", frame.FrameNo, frame.SkinName);
lTime.SetSecondDouble(frame.FrameNo);
int fps = 60;
lTime.SetSecondDouble(frame.FrameNo / fps);
lCurve->KeyAdd(lTime);
//lCurve->KeySetValue(i, frame.Weight);
lCurve->KeySet(i, lTime, frame.Weight, FbxAnimCurveDef::eInterpolationLinear);
Expand Down

0 comments on commit e82d579

Please sign in to comment.