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

Method createPatch

radiantcore/patch/PatchModule.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28scene::INodePtr PatchModule::createPatch(PatchDefType type)
29{
30 scene::INodePtr node = std::make_shared<PatchNode>(type);
31
32 if (GlobalMapModule().getRoot())
33 {
34 // All patches are created in the active layer by default
35 node->moveToLayer(GlobalMapModule().getRoot()->getLayerManager().getActiveLayer());
36 }
37
38 return node;
39}
40
41IPatchSettings& PatchModule::getSettings()
42{

Callers 14

TEST_FFunction · 0.80
TEST_FFunction · 0.80
createWorldspawnPatchFunction · 0.80
createPatchFromBoundsFunction · 0.80
createPatchDef2Method · 0.80
createPatchDef3Method · 0.80
createDecalsMethod · 0.80
readPatchMethod · 0.80
parseMethod · 0.80
parseMethod · 0.80
thickenFunction · 0.80
createdMergedPatchFunction · 0.80

Calls 3

moveToLayerMethod · 0.80
getRootMethod · 0.45
getActiveLayerMethod · 0.45

Tested by

no test coverage detected