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

Method foreachBrush

radiantcore/selection/RadiantSelectionSystem.cpp:539–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void RadiantSelectionSystem::foreachBrush(const std::function<void(Brush&)>& functor)
540{
541 BrushSelectionWalker walker(functor);
542
543 for (auto i = _selection.begin(); i != _selection.end(); /* in-loop increment */)
544 {
545 walker.visit((i++)->first); // Handles group nodes recursively
546 }
547}
548
549void RadiantSelectionSystem::foreachFace(const std::function<void(IFace&)>& functor)
550{

Callers 4

getSelectedBrushesFunction · 0.80
resizeBrushesToBoundsFunction · 0.80
constructBrushPrefabsFunction · 0.80
brushSetDetailFlagFunction · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
visitMethod · 0.45

Tested by

no test coverage detected