diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-11-23 15:24:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-11-23 15:44:52 +0300 |
commit | f021d97e8f3812ada6e1afa44557cb62c4df1f02 (patch) | |
tree | 2f454e4677dc265c82aea9331b12bce074237f72 | |
parent | 940f7a6d5364c8090bd7efbd29423ebeb41d1a96 (diff) |
Fix T46842: Removing World is missing AO update in viewport render
-rw-r--r-- | intern/cycles/blender/blender_shader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp index 2beeaa5e07a..81204aaa13a 100644 --- a/intern/cycles/blender/blender_shader.cpp +++ b/intern/cycles/blender/blender_shader.cpp @@ -1167,6 +1167,10 @@ void BlenderSync::sync_world(bool update_all) background->visibility = visibility; } + else { + background->ao_factor = 0.0f; + background->ao_distance = FLT_MAX; + } shader->set_graph(graph); shader->tag_update(scene); |