Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-05-02 03:26:13 +0400
committerThomas Dinges <blender@dingto.org>2014-05-02 03:27:10 +0400
commit9270aa92786a11229aead690ddd2adce9619b3bf (patch)
tree75ddd80f1d959d1d7d1d73876c47fa3f344749fe /intern/cycles
parentf61e8857066e7c6f4f4db9f6bda3c379661f0282 (diff)
Cleanup: Remove unused variables.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/light.cpp3
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 */