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

Function createAndSelectSingleBrush

test/MapExport.cpp:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22{
23
24void createAndSelectSingleBrush()
25{
26 auto worldspawn = GlobalMapModule().findOrInsertWorldspawn();
27
28 auto brushNode = GlobalBrushCreator().createBrush();
29 worldspawn->addChildNode(brushNode);
30
31 GlobalSelectionSystem().setSelectedAll(false);
32 Node_setSelected(brushNode, true);
33}
34
35}
36

Callers 1

TEST_FFunction · 0.85

Calls 4

Node_setSelectedFunction · 0.85
addChildNodeMethod · 0.80
createBrushMethod · 0.45
setSelectedAllMethod · 0.45

Tested by

no test coverage detected