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

Method getSelected

Engine/source/gui/worldEditor/creator.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127S32 CreatorTree::Node::getSelected()
128{
129 for(U32 i = 0; i < mChildren.size(); i++)
130 {
131 if(mChildren[i]->isSelected())
132 return(mChildren[i]->mId);
133 else if(mChildren[i]->isGroup())
134 {
135 S32 ret = mChildren[i]->getSelected();
136 if(ret != -1)
137 return(ret);
138 }
139 }
140 return(-1);
141}
142
143//------------------------------------------------------------------------------
144// Class CreatorTree

Callers 1

creator.cppFile · 0.45

Calls 3

isGroupMethod · 0.80
sizeMethod · 0.45
isSelectedMethod · 0.45

Tested by

no test coverage detected