diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 351b1a6..cb16b89 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -230,6 +230,9 @@ void pass_prepare(float seconds) if (!entity->model()) { entity->entity_modelname.clear(); } else { + // set entity radius to model radius + entity->entity_radius = entity->entity_model->radius(); + for (std::list<model::Light *>::iterator lit = entity->model()->model_light.begin(); lit != entity->model()->model_light.end(); lit++) { model::Light *light = (*lit); |