Skip to content

Commit

Permalink
Reset to the first animation in the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
lyuma committed Jun 9, 2023
1 parent 2c89516 commit a90c22d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fbx/Fbx2Raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,10 @@ static void ReadAnimations(RawModel& raw, FbxScene* pScene, const GltfOptions& o
(float)totalSizeInBytes * 1e-6f);
}
}
if (animationCount > 0) {
FbxAnimStack* pAnimStack = pScene->GetSrcObject<FbxAnimStack>(0);
pScene->SetCurrentAnimationStack(pAnimStack);
}
}

static std::string FindFileLoosely(
Expand Down

0 comments on commit a90c22d

Please sign in to comment.