MCPcopy Create free account
hub / github.com/assimp/assimp / ReadSkeletonAnimationKeyFrame

Method ReadSkeletonAnimationKeyFrame

code/AssetLib/Ogre/OgreBinarySerializer.cpp:948–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948void OgreBinarySerializer::ReadSkeletonAnimationKeyFrame(VertexAnimationTrack *dest) {
949 TransformKeyFrame keyframe;
950 keyframe.timePos = Read<float>();
951
952 // Rot and pos
953 ReadQuaternion(keyframe.rotation);
954 ReadVector(keyframe.position);
955
956 // Scale (optional)
957 if (m_currentLen > MSTREAM_KEYFRAME_SIZE_WITHOUT_SCALE)
958 ReadVector(keyframe.scale);
959
960 dest->transformKeyFrames.push_back(keyframe);
961}
962
963void OgreBinarySerializer::ReadSkeletonAnimationLink(Skeleton * /*skeleton*/) {
964 // Skip bounds, not compatible with Assimp.

Callers

nothing calls this directly

Calls 2

ReadVectorFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected