MCPcopy Create free account
hub / github.com/defold/defold / FindBoneIndex

Function FindBoneIndex

engine/modelc/src/modelimporter_gltf.cpp:1261–1273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259}
1260
1261static uint32_t FindBoneIndex(cgltf_skin* gltf_skin, cgltf_node* joint)
1262{
1263 if (joint == 0)
1264 return INVALID_INDEX;
1265
1266 for (uint32_t i = 0; i < gltf_skin->joints_count; ++i)
1267 {
1268 cgltf_node* gltf_joint = gltf_skin->joints[i];
1269 if (joint == gltf_joint)
1270 return i;
1271 }
1272 return INVALID_INDEX;
1273}
1274
1275struct BoneSortInfo
1276{

Callers 1

LoadSkinsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected