| 34 | } |
| 35 | |
| 36 | void Light::OnDisable() |
| 37 | { |
| 38 | #if USE_EDITOR |
| 39 | GetSceneRendering()->RemoveViewportIcon(this); |
| 40 | GetSceneRendering()->RemoveLightsDebug<Light, &Light::DrawLightsDebug>(this); |
| 41 | #endif |
| 42 | GetSceneRendering()->RemoveActor(this, _sceneRenderingKey); |
| 43 | |
| 44 | // Base |
| 45 | Actor::OnDisable(); |
| 46 | } |
| 47 | |
| 48 | #if USE_EDITOR |
| 49 | void Light::DrawLightsDebug(RenderView& view) |
nothing calls this directly
no test coverage detected