| 938 | } |
| 939 | |
| 940 | void Bone::AddChild(Bone *bone) { |
| 941 | if (!bone) |
| 942 | return; |
| 943 | if (bone->IsParented()) |
| 944 | throw DeadlyImportError("Attaching child Bone that is already parented: ", bone->name); |
| 945 | |
| 946 | bone->parent = this; |
| 947 | bone->parentId = id; |
| 948 | children.push_back(bone->id); |
| 949 | } |
| 950 | |
| 951 | void Bone::CalculateWorldMatrixAndDefaultPose(Skeleton *skeleton) { |
| 952 | if (!IsParented()) |
no test coverage detected