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

Function FindNodeIndex

engine/modelc/src/modelimporter_gltf.cpp:456–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456static uint32_t FindNodeIndex(cgltf_node* node, uint32_t nodes_count, cgltf_node* nodes)
457{
458 for (uint32_t i = 0; i < nodes_count; ++i)
459 {
460 if (&nodes[i] == node)
461 return i;
462 }
463 assert(false && "Failed to find node in list of nodes");
464 return INVALID_INDEX;
465}
466
467static Node* TranslateNode(cgltf_node* node, cgltf_data* gltf_data, Scene* scene)
468{

Callers 1

TranslateNodeFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected