MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / toggleLockSelection

Method toggleLockSelection

Engine/source/gui/controls/guiTreeViewCtrl.cpp:4360–4370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4358//-----------------------------------------------------------------------------
4359
4360void GuiTreeViewCtrl::toggleLockSelection()
4361{
4362 for(U32 i = 0; i < mSelectedItems.size(); i++)
4363 {
4364 if( mSelectedItems[i]->isInspectorData() )
4365 {
4366 SimObject* object = mSelectedItems[ i ]->getObject();
4367 object->setLocked( !object->isLocked() );
4368 }
4369 }
4370}
4371
4372//-----------------------------------------------------------------------------
4373

Callers 1

Calls 5

isInspectorDataMethod · 0.80
isLockedMethod · 0.80
sizeMethod · 0.45
getObjectMethod · 0.45
setLockedMethod · 0.45

Tested by

no test coverage detected