MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / testNode

Method testNode

radiantcore/selection/SelectionTestWalkers.cpp:68–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void 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
95void PrimitiveSelector::testNode(const scene::INodePtr& node)
96{

Callers 2

selectPointMethod · 0.45
selectAreaMethod · 0.45

Calls 3

Node_isModelFunction · 0.85
Node_isEntityFunction · 0.85
Node_isPrimitiveFunction · 0.85

Tested by

no test coverage detected