| 879 | } |
| 880 | |
| 881 | void 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 | |
| 894 | void OgreBinarySerializer::ReadSkeletonAnimation(Skeleton *skeleton) { |
| 895 | Animation *anim = new Animation(skeleton); |
nothing calls this directly
no test coverage detected