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/bvh/bvh.cpp')
-rw-r--r--intern/cycles/bvh/bvh.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 33143e2d8aa..c7e11539cf9 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -167,6 +167,10 @@ void BVH::pack_primitives()
if(pack.prim_type[i] & PRIMITIVE_ALL_CURVE)
pack.prim_visibility[i] |= PATH_RAY_CURVE;
+ if (ob->is_shadow_catcher)
+ pack.prim_visibility[i] &= ~PATH_RAY_SHADOW_NON_CATCHER;
+ else
+ pack.prim_visibility[i] &= ~PATH_RAY_SHADOW_CATCHER;
}
else {
pack.prim_tri_index[i] = -1;