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

Method createPatchDef2

plugins/script/interfaces/PatchInterface.cpp:190–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188PatchControl ScriptPatchNode::_emptyPatchControl;
189
190ScriptSceneNode PatchInterface::createPatchDef2()
191{
192 // Create a new patch and return the script scene node
193 scene::INodePtr node = GlobalPatchModule().createPatch(patch::PatchDefType::Def2);
194
195 // Add the node to the buffer otherwise it will be deleted immediately,
196 // as ScriptSceneNodes are using weak_ptrs.
197 SceneNodeBuffer::Instance().push_back(node);
198
199 return ScriptSceneNode(node);
200}
201
202ScriptSceneNode PatchInterface::createPatchDef3()
203{

Callers

nothing calls this directly

Calls 3

ScriptSceneNodeClass · 0.85
createPatchMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected