MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getPathRecursively

Method getPathRecursively

libs/scene/Node.cpp:344–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void Node::getPathRecursively(Path& targetPath)
345{
346 INodePtr parent = getParent();
347
348 assert(parent.get() != this); // avoid loopbacks
349
350 if (parent != NULL) {
351 std::dynamic_pointer_cast<Node>(parent)->getPathRecursively(targetPath);
352 }
353
354 // After passing the call to the parent, add self
355 targetPath.push(shared_from_this());
356}
357
358Path Node::getPath()
359{

Callers 1

getPathMethod · 0.80

Calls 2

getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected