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

Method visit

radiantcore/selection/algorithm/Group.cpp:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void ParentPrimitivesToEntityWalker::visit(const scene::INodePtr& node) const
132{
133 // Don't reparent instances to themselves
134 if (_parent == node) return;
135
136 if (Node_isPrimitive(node))
137 {
138 // Got a child, add it to the list
139 _childrenToReparent.push_back(node);
140
141 // Mark the entity for later emptiness check
142 _oldParents.insert(node->getParent());
143 }
144}
145
146bool ParentPrimitivesToEntityWalker::pre(const scene::INodePtr& node)
147{

Callers 8

foreachBrushMethod · 0.45
foreachFaceMethod · 0.45
foreachPatchMethod · 0.45
foreachSelectionSetMethod · 0.45
forEachEntityClassMethod · 0.45
foreachNodeInVolumeMethod · 0.45

Calls 5

Node_isPrimitiveFunction · 0.85
hasChildPrimitivesFunction · 0.85
push_backMethod · 0.45
insertMethod · 0.45
getParentMethod · 0.45

Tested by

no test coverage detected