| 66 | } |
| 67 | |
| 68 | void EntitySelector::testNode(const scene::INodePtr& node) |
| 69 | { |
| 70 | // Check directly for an entity |
| 71 | scene::INodePtr entity = getEntityNode(node); |
| 72 | |
| 73 | if (entity == NULL) |
| 74 | { |
| 75 | // Skip any models, the parent entity is taking care of the selection test |
| 76 | if (Node_isModel(node)) |
| 77 | { |
| 78 | return; |
| 79 | } |
| 80 | |
| 81 | // Second chance check: is the parent a group node? |
| 82 | entity = getParentGroupEntity(node); |
| 83 | } |
| 84 | |
| 85 | // Skip worldspawn in any case |
| 86 | if (entity == NULL || entityIsWorldspawn(entity)) return; |
| 87 | |
| 88 | // Comment out to hide debugging output |
| 89 | //printNodeName(node); |
| 90 | |
| 91 | // The entity is the selectable, but the actual node will be tested for selection |
| 92 | performSelectionTest(entity, node); |
| 93 | } |
| 94 | |
| 95 | void PrimitiveSelector::testNode(const scene::INodePtr& node) |
| 96 | { |
no test coverage detected