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:
authorErik Englesson <erikenglesson@gmail.com>2018-08-08 17:57:59 +0300
committerErik Englesson <erikenglesson@gmail.com>2018-08-10 18:31:33 +0300
commit8e36d94be266dc64afd9861a6fd5aa9cbbecc0f5 (patch)
tree3b5fd8420e021cc30498e3b8f02c3fe11d4f0a4d /intern/cycles/blender/blender_sync.cpp
parent94af4326e3fc22fe1b229a3e2435fb6ccfe36ce9 (diff)
Cycles: Added more comments and renamed variables
More code comments have been added to all code related to the light tree. I also renamed all uses of "light BVH" to use light tree instead to keep everything consistent. Functions and variable names that used the camel case naming convention has been changed to follow Blender's code style. Also, unneeded includes were removed.
Diffstat (limited to 'intern/cycles/blender/blender_sync.cpp')
-rw-r--r--intern/cycles/blender/blender_sync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp
index 8f9d8bc34d2..bb67099a0c2 100644
--- a/intern/cycles/blender/blender_sync.cpp
+++ b/intern/cycles/blender/blender_sync.cpp
@@ -281,7 +281,7 @@ void BlenderSync::sync_integrator()
Integrator::NUM_METHODS,
Integrator::PATH);
- integrator->use_light_bvh = get_boolean(cscene, "use_light_bvh");
+ integrator->use_light_tree = get_boolean(cscene, "use_light_tree");
integrator->splitting_threshold = get_float(cscene, "splitting_threshold");
integrator->sample_all_lights_direct = get_boolean(cscene, "sample_all_lights_direct");
integrator->sample_all_lights_indirect = get_boolean(cscene, "sample_all_lights_indirect");
@@ -329,7 +329,7 @@ void BlenderSync::sync_integrator()
if(integrator->modified(previntegrator)) {
integrator->tag_update(scene);
}
- if(integrator->use_light_bvh != previntegrator.use_light_bvh ||
+ if(integrator->use_light_tree != previntegrator.use_light_tree ||
integrator->splitting_threshold != previntegrator.splitting_threshold)
{
scene->light_manager->tag_update(scene);