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

Function AddNodeMetaData

code/AssetLib/Collada/ColladaLoader.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83// Assumes the key is not already in the list
84template <typename T>
85void AddNodeMetaData(aiNode *node, const std::string &key, const T &value) {
86 if (nullptr == node->mMetaData) {
87 node->mMetaData = new aiMetadata();
88 }
89 node->mMetaData->Add(key, value);
90}
91
92// ------------------------------------------------------------------------------------------------
93// Reads a float value from an accessor and its data array.

Callers 1

BuildHierarchyMethod · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected