Skip to content

Commit

Permalink
size modify
Browse files Browse the repository at this point in the history
  • Loading branch information
Taku3939 committed Jan 17, 2022
1 parent e82d579 commit 4b839f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@

#define SAMPLE_FILENAME "Test.fbx"
VMD *vmd;

bool CreateScene(FbxScene *pScene);

FbxNode *CreateNurbs(FbxScene *pScene, const char *pName);

void MapShapesOnNurbs(FbxScene *pScene, FbxNode *pNurbs);

void AnimateNurbs(FbxNode *pNurbs, FbxScene *pScene);

int main(int argc, char **argv) {
Expand Down Expand Up @@ -145,8 +149,7 @@ void AnimateNurbs(FbxNode *pNurbs, FbxScene *pScene) {
//FbxAnimCurve* lCurve = lNurbsAttribute->GetShapeChannel(0, 0, lAnimLayer, true);

auto morphList = vmd->GetMorphList();

for (int i = 0; i < 30; i++) {
for (int i = 0; i < morphList.size() / (sizeof(int)); i++) {
// Need to be fixed.
// THis process is late and might be plotted key on every frame.
auto lCurve = lNurbsAttribute->GetShapeChannel(0, i, lAnimLayer, true);
Expand Down

0 comments on commit 4b839f5

Please sign in to comment.