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

Method FindNode

code/Common/scene.cpp:159–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159const aiNode *aiNode::FindNode(const char *name) const {
160 if (nullptr == name) {
161 return nullptr;
162 }
163 if (!::strcmp(mName.data, name)) {
164 return this;
165 }
166 for (unsigned int i = 0; i < mNumChildren; ++i) {
167 const aiNode *const p = mChildren[i]->FindNode(name);
168 if (p) {
169 return p;
170 }
171 }
172 // there is definitely no sub-node with this name
173 return nullptr;
174}
175
176aiNode *aiNode::FindNode(const char *name) {
177 if (!::strcmp(mName.data, name)) return this;

Callers 15

SceneAnimatorMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
checkBoneHierarchyMethod · 0.45
emptyBonesNamesMethod · 0.45
emptyBodypartsNamesMethod · 0.45
emptySequenceNamesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected