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:
Diffstat (limited to 'intern/cycles/blender/blender_shader.cpp')
-rw-r--r--intern/cycles/blender/blender_shader.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp
index a88bcaf3ace..415a043cf78 100644
--- a/intern/cycles/blender/blender_shader.cpp
+++ b/intern/cycles/blender/blender_shader.cpp
@@ -700,14 +700,12 @@ void BlenderSync::sync_world()
if(b_world) {
BL::WorldLighting b_light = b_world.light_settings();
- if(b_light.use_ambient_occlusion()) {
+ if(b_light.use_ambient_occlusion())
background->ao_factor = b_light.ao_factor();
- background->ao_distance = b_light.distance();
- }
- else {
+ else
background->ao_factor = 0.0f;
- background->ao_distance = 0.0f;
- }
+
+ background->ao_distance = b_light.distance();
}
shader->set_graph(graph);