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

Method selectObject

Engine/source/gui/worldEditor/worldEditor.cpp:2919–2932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2917}
2918
2919void WorldEditor::selectObject( SimObject *obj )
2920{
2921 if ( mSelectionLocked || !mSelected || !obj )
2922 return;
2923
2924 // Don't check isSelectionEnabled of SceneObjects here as we
2925 // want to still allow manual selection in treeviews.
2926
2927 if ( !objClassIgnored( obj ) && !mSelected->objInSet( obj ) )
2928 {
2929 mSelected->addObject( obj );
2930 Con::executef( this, "onSelect", obj->getIdString() );
2931 }
2932}
2933
2934void WorldEditor::selectObject( const char* obj )
2935{

Callers 4

selectWithinMethod · 0.80
setVisibleMethod · 0.80
renderSceneMethod · 0.80
worldEditor.cppFile · 0.80

Calls 5

executefFunction · 0.85
objInSetMethod · 0.80
getIdStringMethod · 0.80
findObjectFunction · 0.50
addObjectMethod · 0.45

Tested by

no test coverage detected