| 200 | } |
| 201 | |
| 202 | ScriptSceneNode 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 | |
| 214 | void PatchInterface::registerInterface(py::module& scope, py::dict& globals) |
| 215 | { |
nothing calls this directly
no test coverage detected