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

Method setSelectionFlags

Engine/source/T3D/tsStatic.cpp:1844–1860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1842}
1843
1844void TSStatic::setSelectionFlags(U8 flags)
1845{
1846 Parent::setSelectionFlags(flags);
1847
1848 if (!mShapeInstance || !isClientObject())
1849 return;
1850
1851 if (!mShapeInstance->ownMaterialList())
1852 return;
1853
1854 TSMaterialList* pMatList = mShapeInstance->getMaterialList();
1855 for (S32 j = 0; j < pMatList->size(); j++)
1856 {
1857 BaseMatInstance* bmi = pMatList->getMaterialInst(j);
1858 bmi->setSelectionHighlighting(needsSelectionHighlighting());
1859 }
1860}
1861
1862bool TSStatic::hasNode(const char* nodeName)
1863{

Callers 2

rolloverRayCastMethod · 0.45
setSelectedObjMethod · 0.45

Calls 5

ownMaterialListMethod · 0.80
getMaterialListMethod · 0.80
getMaterialInstMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected