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

Method isSelectedRecursive

Engine/source/console/simObject.cpp:2172–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170//-----------------------------------------------------------------------------
2171
2172bool SimObject::isSelectedRecursive() const
2173{
2174 const SimObject *walk = this;
2175 while ( walk )
2176 {
2177 if ( walk->isSelected() )
2178 return true;
2179 walk = walk->getGroup();
2180 }
2181
2182 return false;
2183}
2184
2185//-----------------------------------------------------------------------------
2186

Callers 1

findSelectedElementsFunction · 0.80

Calls 2

isSelectedMethod · 0.45
getGroupMethod · 0.45

Tested by

no test coverage detected