| 2917 | } |
| 2918 | |
| 2919 | void 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 | |
| 2934 | void WorldEditor::selectObject( const char* obj ) |
| 2935 | { |
no test coverage detected