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

Method createPatchDef3

plugins/script/interfaces/PatchInterface.cpp:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202ScriptSceneNode PatchInterface::createPatchDef3()
203{
204 // Create a new patch and return the script scene node
205 scene::INodePtr node = GlobalPatchModule().createPatch(patch::PatchDefType::Def3);
206
207 // Add the node to the buffer otherwise it will be deleted immediately,
208 // as ScriptSceneNodes are using weak_ptrs.
209 SceneNodeBuffer::Instance().push_back(node);
210
211 return ScriptSceneNode(node);
212}
213
214void PatchInterface::registerInterface(py::module& scope, py::dict& globals)
215{

Callers

nothing calls this directly

Calls 3

ScriptSceneNodeClass · 0.85
createPatchMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected