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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-04-04 19:10:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-04 19:11:34 +0300
commita3d65525148062bceef6b4644dbe8bfaf20d83d7 (patch)
tree8b1659248b8dbfc0065a84ad94cad4d98eccbc98 /intern/cycles/bvh/bvh_build.cpp
parentd82d9e14e8194f2594718276bcc7bde415323344 (diff)
Cycles: Fix regular BVH not having proper visibility flags
This was caused by recent threading commit. Now because of all children are set when they're ready need to explicitly update all parent's visibility.
Diffstat (limited to 'intern/cycles/bvh/bvh_build.cpp')
-rw-r--r--intern/cycles/bvh/bvh_build.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index 5139a62cd82..b77696385a8 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -318,7 +318,7 @@ BVHNode* BVHBuild::run()
rootnode = NULL;
VLOG(1) << "BVH build cancelled.";
}
- else if(!params.use_spatial_split) {
+ else {
/*rotate(rootnode, 4, 5);*/
rootnode->update_visibility();
}