[Bf-blender-cvs] [a3d6552] master: Cycles: Fix regular BVH not having proper visibility flags

Sergey Sharybin noreply at git.blender.org
Mon Apr 4 18:11:36 CEST 2016


Commit: a3d65525148062bceef6b4644dbe8bfaf20d83d7
Author: Sergey Sharybin
Date:   Mon Apr 4 18:10:24 2016 +0200
Branches: master
https://developer.blender.org/rBa3d65525148062bceef6b4644dbe8bfaf20d83d7

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.

===================================================================

M	intern/cycles/bvh/bvh_build.cpp

===================================================================

diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index 5139a62..b776963 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();
 		}




More information about the Bf-blender-cvs mailing list