------------------------------------------------------------------------------------------------ Finds a node in the collada scene by the given name
| 1761 | // ------------------------------------------------------------------------------------------------ |
| 1762 | // Finds a node in the collada scene by the given name |
| 1763 | const Node *ColladaLoader::FindNode(const Node *pNode, const std::string &pName) const { |
| 1764 | if (pNode->mName == pName || pNode->mID == pName) |
| 1765 | return pNode; |
| 1766 | |
| 1767 | for (auto a : pNode->mChildren) { |
| 1768 | const Collada::Node *node = FindNode(a, pName); |
| 1769 | if (node) { |
| 1770 | return node; |
| 1771 | } |
| 1772 | } |
| 1773 | |
| 1774 | return nullptr; |
| 1775 | } |
| 1776 | |
| 1777 | // ------------------------------------------------------------------------------------------------ |
| 1778 | // Finds a node in the collada scene by the given SID |
no test coverage detected