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

Function DuplicateObjectName

engine/modelc/src/modelimporter_gltf.cpp:510–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508
509template <typename T>
510static char* DuplicateObjectName(T* object)
511{
512 assert(object->name);
513 return strdup(object->name);
514}
515
516template <>
517char* DuplicateObjectName<>(cgltf_buffer* object)

Callers 9

LoadNodesFunction · 0.85
LoadSamplersFunction · 0.85
LoadImagesFunction · 0.85
LoadTexturesFunction · 0.85
LoadMaterialsFunction · 0.85
LoadMeshesFunction · 0.85
LoadSkinsFunction · 0.85
LoadAnimationsFunction · 0.85
LoadGltfFromBufferFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected