diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/light.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index cfc4f55ed5e..dd5694582e6 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -149,7 +149,6 @@ void LightManager::device_update_distribution(Device *device, DeviceScene *dscen size_t num_lights = scene->lights.size(); size_t num_background_lights = 0; size_t num_triangles = 0; - size_t num_curve_segments = 0; foreach(Object *object, scene->objects) { Mesh *mesh = object->mesh; @@ -184,7 +183,7 @@ void LightManager::device_update_distribution(Device *device, DeviceScene *dscen } } - size_t num_distribution = num_triangles + num_curve_segments; + size_t num_distribution = num_triangles; num_distribution += num_lights; /* emission area */ |