mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Selection Highlighting
This commit is contained in:
parent
64d1b06866
commit
d4c2eeea98
7 changed files with 52 additions and 0 deletions
|
|
@ -5013,3 +5013,22 @@ DefineEngineMethod( ShapeBase, getModelFile, const char *, (),,
|
|||
const char *fieldName = StringTable->insert( String("shapeFile") );
|
||||
return datablock->getDataField( fieldName, NULL );
|
||||
}
|
||||
|
||||
void ShapeBase::setSelectionFlags(U8 flags)
|
||||
{
|
||||
Parent::setSelectionFlags(flags);
|
||||
|
||||
if (!mShapeInstance || !isClientObject())
|
||||
return;
|
||||
|
||||
if (!mShapeInstance->ownMaterialList())
|
||||
return;
|
||||
|
||||
TSMaterialList* pMatList = mShapeInstance->getMaterialList();
|
||||
for (S32 j = 0; j < pMatList->size(); j++)
|
||||
{
|
||||
BaseMatInstance * bmi = pMatList->getMaterialInst(j);
|
||||
bmi->setSelectionHighlighting(needsSelectionHighlighting());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue