| 69 | } |
| 70 | |
| 71 | void DynamicLightObject::Moved(Object::MoveType type) { |
| 72 | Object::Moved(type); |
| 73 | if (scenegraph_ && light_id_ != -1) { |
| 74 | DynamicLight *light = scenegraph_->dynamic_light_collection.GetLightFromID(light_id_); |
| 75 | LOG_ASSERT(light != NULL); |
| 76 | if (light) { |
| 77 | light->radius = RadiusFromScale(scale_); |
| 78 | light->pos = translation_; |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void DynamicLightObject::Dispose() { |
| 84 | Object::Dispose(); |
nothing calls this directly
no test coverage detected