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.
This commit is contained in:
Sergey Sharybin 2016-04-04 18:10:24 +02:00
parent d82d9e14e8
commit a3d6552514
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}