MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addNodeToTree

Method addNodeToTree

Engine/source/ts/assimp/assimpShapeLoader.cpp:604–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void AssimpShapeLoader::addNodeToTree(S32 parentItem, aiNode* node, GuiTreeViewCtrl* tree, U32& nodeCount)
605{
606 // Add this node
607 S32 nodeItem = parentItem;
608 String nodeName = node->mName.C_Str();
609 if (!ignoreNode(nodeName))
610 {
611 if (nodeName.isEmpty())
612 nodeName = "null";
613 nodeItem = tree->insertItem(parentItem, nodeName.c_str(), String::ToString("%i", node->mNumChildren));
614 nodeCount++;
615 }
616
617 // Add any child nodes
618 for (U32 n = 0; n < node->mNumChildren; ++n)
619 addNodeToTree(nodeItem, node->mChildren[n], tree, nodeCount);
620}
621
622void AssimpShapeLoader::addMetaDataToTree(const aiMetadata* metaData, GuiTreeViewCtrl* tree)
623{

Callers

nothing calls this directly

Calls 4

C_StrMethod · 0.80
isEmptyMethod · 0.45
insertItemMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected