Skip to content

Commit

Permalink
Assimp: fix animations bone handle (#2930)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandotonon committed Aug 27, 2023
1 parent f81c78b commit b78b5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlugIns/Assimp/src/AssimpLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ void AssimpLoader::parseAnimation(const aiScene* mScene, int index, aiAnimation*
defBonePoseInv.makeInverseTransform(bone->getPosition(), bone->getScale(),
bone->getOrientation());

NodeAnimationTrack* track = animation->createNodeTrack(i, bone);
NodeAnimationTrack* track = animation->createNodeTrack(bone->getHandle(), bone);

// Ogre needs translate rotate and scale for each keyframe in the track
KeyframesMap keyframes;
Expand Down Expand Up @@ -1423,4 +1423,4 @@ extern "C" void _OgreAssimpExport dllStopPlugin()
AssimpCodec::shutdown();
}
#endif
} // namespace Ogre
} // namespace Ogre

0 comments on commit b78b5e6

Please sign in to comment.