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

Method AddNodePrefixes

code/Common/SceneCombiner.cpp:118–127  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Add a name prefix to all nodes in a hierarchy

Source from the content-addressed store, hash-verified

116// ------------------------------------------------------------------------------------------------
117// Add a name prefix to all nodes in a hierarchy
118void SceneCombiner::AddNodePrefixes(aiNode *node, const char *prefix, unsigned int len) {
119 ai_assert(nullptr != prefix);
120
121 PrefixString(node->mName, prefix, len);
122
123 // Process all children recursively
124 for (unsigned int i = 0; i < node->mNumChildren; ++i) {
125 AddNodePrefixes(node->mChildren[i], prefix, len);
126 }
127}
128
129// ------------------------------------------------------------------------------------------------
130// Search for matching names

Callers

nothing calls this directly

Calls 1

PrefixStringFunction · 0.85

Tested by

no test coverage detected