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

Method AddChild

code/AssetLib/Ogre/OgreStructs.cpp:940–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void 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
951void Bone::CalculateWorldMatrixAndDefaultPose(Skeleton *skeleton) {
952 if (!IsParented())

Callers 2

ReadBoneParentMethod · 0.45
ReadBoneHierarchyMethod · 0.45

Calls 3

DeadlyImportErrorFunction · 0.85
IsParentedMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected