| 303 | } |
| 304 | |
| 305 | void PatchNode::onInsertIntoScene(scene::IMapRootNode& root) |
| 306 | { |
| 307 | // Mark the GL shader as used from now on, this is used by the TextureBrowser's filtering |
| 308 | m_patch.getSurfaceShader().setInUse(true); |
| 309 | |
| 310 | // When inserting a patch into the scene, it gets a parent entity assigned |
| 311 | // The colour of that entity will influence the tesselation's vertex colours |
| 312 | m_patch.queueTesselationUpdate(); |
| 313 | |
| 314 | updateAllRenderables(); |
| 315 | |
| 316 | m_patch.connectUndoSystem(root.getUndoSystem()); |
| 317 | GlobalCounters().getCounter(counterPatches).increment(); |
| 318 | |
| 319 | // Update the origin information needed for transformations |
| 320 | _untransformedOrigin = worldAABB().getOrigin(); |
| 321 | |
| 322 | SelectableNode::onInsertIntoScene(root); |
| 323 | } |
| 324 | |
| 325 | void PatchNode::onRemoveFromScene(scene::IMapRootNode& root) |
| 326 | { |
nothing calls this directly
no test coverage detected