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

Method ReadBoneParent

code/AssetLib/Ogre/OgreBinarySerializer.cpp:881–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881void OgreBinarySerializer::ReadBoneParent(Skeleton *skeleton) {
882 uint16_t childId = Read<uint16_t>();
883 uint16_t parentId = Read<uint16_t>();
884
885 Bone *child = skeleton->BoneById(childId);
886 Bone *parent = skeleton->BoneById(parentId);
887
888 if (child && parent)
889 parent->AddChild(child);
890 else
891 throw DeadlyImportError("Failed to find bones for parenting: Child id ", childId, " for parent id ", parentId);
892}
893
894void OgreBinarySerializer::ReadSkeletonAnimation(Skeleton *skeleton) {
895 Animation *anim = new Animation(skeleton);

Callers

nothing calls this directly

Calls 3

DeadlyImportErrorFunction · 0.85
BoneByIdMethod · 0.80
AddChildMethod · 0.45

Tested by

no test coverage detected